Class XPathFilterCHGPContainer
java.lang.Object
org.apache.xml.security.utils.ElementProxy
org.apache.xml.security.transforms.params.XPathFilterCHGPContainer
- All Implemented Interfaces:
TransformParam
Implements the parameters for a custom Transform which has a better performance
than the xfilter2.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringField _ATT_INCLUDESLASHprivate static final StringField _ATT_FILTER_VALUE_UNIONprivate static final StringField _ATT_FILTER_VALUE_SUBTRACTprivate static final StringField _ATT_FILTER_VALUE_INTERSECTstatic final StringField _TAG_XPATHCHGPstatic final booleanField ExcludeSlashstatic final booleanField IncludeSlashstatic final StringFields inherited from class ElementProxy
baseURI, LOG -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConstructor XPathFilterCHGPContainerprivateXPathFilterCHGPContainer(Document doc, boolean includeSlashPolicy, String includeButSearch, String excludeButSearch, String exclude) Constructor XPathFilterCHGPContainerprivateXPathFilterCHGPContainer(Element element, String baseURI) Constructor XPathFilterCHGPContainer -
Method Summary
Modifier and TypeMethodDescriptionfinal StringMethod getBaseLocalName Returns the localname of the Elements of the sub-class.final StringMethod getBaseNamespace Returns the namespace of the Elements of the sub-class.Method getExcludeMethod getExcludeButSearchprivate NodegetHereContextNode(String type) Returns the first Text node which contains information from the XPath Filter String.Method getHereContextNodeExcludeMethod getHereContextNodeExcludeButSearchMethod getHereContextNodeIncludeButSearchMethod getIncludeButSearchbooleanMethod getIncludeSlashPolicystatic XPathFilterCHGPContainergetInstance(Document doc, boolean includeSlashPolicy, String includeButSearch, String excludeButSearch, String exclude) Creates a new XPathFilterCHGPContainer; needed for generation.static XPathFilterCHGPContainergetInstance(Element element, String baseURI) Creates a XPathFilterCHGPContainer from an existing Element; needed for verification.private StringMethod getXStr(package private) static StringMethod indentXPathTextprivate static TextselectNodeText(Node sibling, String uri, String nodeName, int number) Methods inherited from class ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContext
-
Field Details
-
TRANSFORM_XPATHFILTERCHGP
- See Also:
-
_TAG_INCLUDE_BUT_SEARCH
-
_TAG_EXCLUDE_BUT_SEARCH
-
_TAG_EXCLUDE
-
_TAG_XPATHCHGP
-
_ATT_INCLUDESLASH
-
IncludeSlash
public static final boolean IncludeSlashField IncludeSlash- See Also:
-
ExcludeSlash
public static final boolean ExcludeSlashField ExcludeSlash- See Also:
-
-
Constructor Details
-
XPathFilterCHGPContainer
private XPathFilterCHGPContainer()Constructor XPathFilterCHGPContainer -
XPathFilterCHGPContainer
-
XPathFilterCHGPContainer
Constructor XPathFilterCHGPContainer- Parameters:
element-baseURI-- Throws:
XMLSecurityException
-
-
Method Details
-
indentXPathText
-
getInstance
public static XPathFilterCHGPContainer getInstance(Document doc, boolean includeSlashPolicy, String includeButSearch, String excludeButSearch, String exclude) Creates a new XPathFilterCHGPContainer; needed for generation.- Parameters:
doc-includeSlashPolicy-includeButSearch-excludeButSearch-exclude-- Returns:
- the created object
-
getInstance
public static XPathFilterCHGPContainer getInstance(Element element, String baseURI) throws XMLSecurityException Creates a XPathFilterCHGPContainer from an existing Element; needed for verification.- Parameters:
element-baseURI-- Returns:
- the created object.
- Throws:
XMLSecurityException
-
getXStr
-
getIncludeButSearch
-
getExcludeButSearch
-
getExclude
-
getIncludeSlashPolicy
public boolean getIncludeSlashPolicy()Method getIncludeSlashPolicy- Returns:
- the string
-
getHereContextNode
Returns the first Text node which contains information from the XPath Filter String. We must use this stupid hook to enable the here() function to work. $todo$ I dunno whether this crashes:here()/ds:Signature[1] - Parameters:
type-- Returns:
- the first Text node which contains information from the XPath 2 Filter String
-
selectNodeText
-
getHereContextNodeIncludeButSearch
Method getHereContextNodeIncludeButSearch- Returns:
- the string
-
getHereContextNodeExcludeButSearch
Method getHereContextNodeExcludeButSearch- Returns:
- the string
-
getHereContextNodeExclude
-
getBaseLocalName
Method getBaseLocalName Returns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalNamein classElementProxy- Returns:
- the localname of the Elements of the sub-class.
-
getBaseNamespace
Method getBaseNamespace Returns the namespace of the Elements of the sub-class.- Specified by:
getBaseNamespacein classElementProxy- Returns:
- the namespace of the Elements of the sub-class.
-