Class FunctionXML_OPEN
java.lang.Object
com.igormaznitsa.jcp.expression.functions.AbstractFunction
com.igormaznitsa.jcp.expression.functions.xml.AbstractXMLFunction
com.igormaznitsa.jcp.expression.functions.xml.FunctionXML_OPEN
- All Implemented Interfaces:
ExpressionItem
The class implements the xml_open function handler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ValueType[][]
static final String
static final String
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 TypeMethodDescriptionexecuteStr
(PreprocessorContext context, Value filePath) ValueType[][]
Get arrays of supported argument typesint
getArity()
Get the function aritygetName()
Get the function nameGet the function reference to be output for a help requestGet the result typeprivate Document
openFileAndParse
(PreprocessorContext context, File file) Methods inherited from class com.igormaznitsa.jcp.expression.functions.xml.AbstractXMLFunction
buildPathForElement, findCachedElement, findCachedElementList, findElementForIndex, getAttribute, getCachedDocument, getCachedElement, getCachedElementList, getElementListSize, getFirstLevelTextContent, makeDocumentId, makeDocumentRootId, makeElementId, makeElementListId, makeXPathElementId, makeXPathListId
Methods inherited from class com.igormaznitsa.jcp.expression.functions.AbstractFunction
findForClass, findForName, getExpressionItemPriority, getExpressionItemType, toString
-
Field Details
-
RES_XML_DOC_PREFIX
- See Also:
-
RES_XML_ELEMENT_PREFIX
- See Also:
-
ARG_TYPES
-
-
Constructor Details
-
FunctionXML_OPEN
public FunctionXML_OPEN()
-
-
Method Details
-
getName
Description copied from class:AbstractFunction
Get the function name- Specified by:
getName
in classAbstractFunction
- Returns:
- the function name in lower case, must not be null
-
executeStr
-
openFileAndParse
-
getArity
public int getArity()Description copied from class:AbstractFunction
Get the function arity- Specified by:
getArity
in classAbstractFunction
- Returns:
- the function arity (zero or greater)
-
getAllowedArgumentTypes
Description copied from class:AbstractFunction
Get arrays of supported argument types- Specified by:
getAllowedArgumentTypes
in classAbstractFunction
- Returns:
- the array of argument type combinations allowed by the function handler, must not be null
-
getReference
Description copied from class:AbstractFunction
Get the function reference to be output for a help request- Specified by:
getReference
in classAbstractFunction
- Returns:
- the function information as a String, must not be null
-
getResultType
Description copied from class:AbstractFunction
Get the result type- Specified by:
getResultType
in classAbstractFunction
- Returns:
- the result type of the function, must not be null
-