Class AbstractXMLFunction
java.lang.Object
com.igormaznitsa.jcp.expression.functions.AbstractFunction
com.igormaznitsa.jcp.expression.functions.xml.AbstractXMLFunction
- All Implemented Interfaces:
ExpressionItem
- Direct Known Subclasses:
FunctionXML_ATTR,FunctionXML_GET,FunctionXML_LIST,FunctionXML_NAME,FunctionXML_OPEN,FunctionXML_ROOT,FunctionXML_SIZE,FunctionXML_TEXT,FunctionXML_XELEMENT,FunctionXML_XLIST
-
Field Summary
Fields inherited from class com.igormaznitsa.jcp.expression.functions.AbstractFunction
ALL_FUNCTIONS, EXECUTION_PREFIX, FUNCTION_NAME_MAP, UID_COUNTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildPathForElement(Element element) findCachedElement(PreprocessorContext context, String elementId) findCachedElementList(PreprocessorContext context, String elementListId) findElementForIndex(PreprocessorContext context, String elementListId, int elementIndex) getAttribute(PreprocessorContext context, String elementId, String attributeName) getCachedDocument(PreprocessorContext context, String documentId) getCachedElement(PreprocessorContext context, String elementId) getCachedElementList(PreprocessorContext context, String elementListId) intgetElementListSize(PreprocessorContext context, String elementListId) static StringgetFirstLevelTextContent(Node node) static StringmakeDocumentId(String fileName) static StringmakeDocumentRootId(String documentId) static StringmakeElementId(String elementListId, int elementIndex) static StringmakeElementListId(Element parentName, String elementName) static StringmakeXPathElementId(String documentId, String xpath) static StringmakeXPathListId(String documentId, String xpath) Methods inherited from class com.igormaznitsa.jcp.expression.functions.AbstractFunction
findForClass, findForName, getAllowedArgumentTypes, getArity, getExpressionItemPriority, getExpressionItemType, getName, getReference, getResultType, toString
-
Constructor Details
-
AbstractXMLFunction
public AbstractXMLFunction()
-
-
Method Details
-
makeElementListId
-
makeDocumentId
-
makeDocumentRootId
-
makeElementId
-
makeXPathListId
-
makeXPathElementId
-
getAttribute
-
getCachedDocument
-
findCachedElement
-
getCachedElement
-
findCachedElementList
-
getCachedElementList
-
getElementListSize
-
buildPathForElement
-
getFirstLevelTextContent
-
findElementForIndex
public String findElementForIndex(PreprocessorContext context, String elementListId, int elementIndex)
-