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 String
buildPathForElement
(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) int
getElementListSize
(PreprocessorContext context, String elementListId) static String
getFirstLevelTextContent
(Node node) static String
makeDocumentId
(String fileName) static String
makeDocumentRootId
(String documentId) static String
makeElementId
(String elementListId, int elementIndex) static String
makeElementListId
(Element parentName, String elementName) static String
makeXPathElementId
(String documentId, String xpath) static String
makeXPathListId
(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)
-