Class XPathFilterCHGPContainer
- java.lang.Object
-
- org.apache.xml.security.utils.ElementProxy
-
- org.apache.xml.security.transforms.params.XPathFilterCHGPContainer
-
- All Implemented Interfaces:
TransformParam
public class XPathFilterCHGPContainer extends ElementProxy implements TransformParam
Implements the parameters for a custom Transform which has a better performance than the xfilter2.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_ATT_INCLUDESLASHField _ATT_INCLUDESLASHprivate static java.lang.String_TAG_EXCLUDEField _ATT_FILTER_VALUE_UNIONprivate static java.lang.String_TAG_EXCLUDE_BUT_SEARCHField _ATT_FILTER_VALUE_SUBTRACTprivate static java.lang.String_TAG_INCLUDE_BUT_SEARCHField _ATT_FILTER_VALUE_INTERSECTstatic java.lang.String_TAG_XPATHCHGPField _TAG_XPATHCHGPstatic booleanExcludeSlashField ExcludeSlashstatic booleanIncludeSlashField IncludeSlashstatic java.lang.StringTRANSFORM_XPATHFILTERCHGP-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG
-
-
Constructor Summary
Constructors Modifier Constructor Description privateXPathFilterCHGPContainer()Constructor XPathFilterCHGPContainerprivateXPathFilterCHGPContainer(org.w3c.dom.Document doc, boolean includeSlashPolicy, java.lang.String includeButSearch, java.lang.String excludeButSearch, java.lang.String exclude)Constructor XPathFilterCHGPContainerprivateXPathFilterCHGPContainer(org.w3c.dom.Element element, java.lang.String baseURI)Constructor XPathFilterCHGPContainer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseLocalName()Method getBaseLocalName Returns the localname of the Elements of the sub-class.java.lang.StringgetBaseNamespace()Method getBaseNamespace Returns the namespace of the Elements of the sub-class.java.lang.StringgetExclude()Method getExcludejava.lang.StringgetExcludeButSearch()Method getExcludeButSearchprivate org.w3c.dom.NodegetHereContextNode(java.lang.String type)Returns the first Text node which contains information from the XPath Filter String.org.w3c.dom.NodegetHereContextNodeExclude()Method getHereContextNodeExcludeorg.w3c.dom.NodegetHereContextNodeExcludeButSearch()Method getHereContextNodeExcludeButSearchorg.w3c.dom.NodegetHereContextNodeIncludeButSearch()Method getHereContextNodeIncludeButSearchjava.lang.StringgetIncludeButSearch()Method getIncludeButSearchbooleangetIncludeSlashPolicy()Method getIncludeSlashPolicystatic XPathFilterCHGPContainergetInstance(org.w3c.dom.Document doc, boolean includeSlashPolicy, java.lang.String includeButSearch, java.lang.String excludeButSearch, java.lang.String exclude)Creates a new XPathFilterCHGPContainer; needed for generation.static XPathFilterCHGPContainergetInstance(org.w3c.dom.Element element, java.lang.String baseURI)Creates a XPathFilterCHGPContainer from an existing Element; needed for verification.private java.lang.StringgetXStr(java.lang.String type)Method getXStr(package private) static java.lang.StringindentXPathText(java.lang.String xp)Method indentXPathTextprivate static org.w3c.dom.TextselectNodeText(org.w3c.dom.Node sibling, java.lang.String uri, java.lang.String nodeName, int number)-
Methods inherited from class org.apache.xml.security.utils.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 Detail
-
TRANSFORM_XPATHFILTERCHGP
public static final java.lang.String TRANSFORM_XPATHFILTERCHGP
- See Also:
- Constant Field Values
-
_TAG_INCLUDE_BUT_SEARCH
private static final java.lang.String _TAG_INCLUDE_BUT_SEARCH
Field _ATT_FILTER_VALUE_INTERSECT- See Also:
- Constant Field Values
-
_TAG_EXCLUDE_BUT_SEARCH
private static final java.lang.String _TAG_EXCLUDE_BUT_SEARCH
Field _ATT_FILTER_VALUE_SUBTRACT- See Also:
- Constant Field Values
-
_TAG_EXCLUDE
private static final java.lang.String _TAG_EXCLUDE
Field _ATT_FILTER_VALUE_UNION- See Also:
- Constant Field Values
-
_TAG_XPATHCHGP
public static final java.lang.String _TAG_XPATHCHGP
Field _TAG_XPATHCHGP- See Also:
- Constant Field Values
-
_ATT_INCLUDESLASH
public static final java.lang.String _ATT_INCLUDESLASH
Field _ATT_INCLUDESLASH- See Also:
- Constant Field Values
-
IncludeSlash
public static final boolean IncludeSlash
Field IncludeSlash- See Also:
- Constant Field Values
-
ExcludeSlash
public static final boolean ExcludeSlash
Field ExcludeSlash- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XPathFilterCHGPContainer
private XPathFilterCHGPContainer()
Constructor XPathFilterCHGPContainer
-
XPathFilterCHGPContainer
private XPathFilterCHGPContainer(org.w3c.dom.Document doc, boolean includeSlashPolicy, java.lang.String includeButSearch, java.lang.String excludeButSearch, java.lang.String exclude)Constructor XPathFilterCHGPContainer- Parameters:
doc-includeSlashPolicy-includeButSearch-excludeButSearch-exclude-
-
XPathFilterCHGPContainer
private XPathFilterCHGPContainer(org.w3c.dom.Element element, java.lang.String baseURI) throws XMLSecurityExceptionConstructor XPathFilterCHGPContainer- Parameters:
element-baseURI-- Throws:
XMLSecurityException
-
-
Method Detail
-
indentXPathText
static java.lang.String indentXPathText(java.lang.String xp)
Method indentXPathText- Parameters:
xp-- Returns:
- the string with enters
-
getInstance
public static XPathFilterCHGPContainer getInstance(org.w3c.dom.Document doc, boolean includeSlashPolicy, java.lang.String includeButSearch, java.lang.String excludeButSearch, java.lang.String exclude)
Creates a new XPathFilterCHGPContainer; needed for generation.- Parameters:
doc-includeSlashPolicy-includeButSearch-excludeButSearch-exclude-- Returns:
- the created object
-
getInstance
public static XPathFilterCHGPContainer getInstance(org.w3c.dom.Element element, java.lang.String baseURI) throws XMLSecurityException
Creates a XPathFilterCHGPContainer from an existing Element; needed for verification.- Parameters:
element-baseURI-- Returns:
- the created object.
- Throws:
XMLSecurityException
-
getXStr
private java.lang.String getXStr(java.lang.String type)
Method getXStr- Parameters:
type-- Returns:
- The Xstr
-
getIncludeButSearch
public java.lang.String getIncludeButSearch()
Method getIncludeButSearch- Returns:
- the string
-
getExcludeButSearch
public java.lang.String getExcludeButSearch()
Method getExcludeButSearch- Returns:
- the string
-
getExclude
public java.lang.String getExclude()
Method getExclude- Returns:
- the string
-
getIncludeSlashPolicy
public boolean getIncludeSlashPolicy()
Method getIncludeSlashPolicy- Returns:
- the string
-
getHereContextNode
private org.w3c.dom.Node getHereContextNode(java.lang.String type)
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
private static org.w3c.dom.Text selectNodeText(org.w3c.dom.Node sibling, java.lang.String uri, java.lang.String nodeName, int number)
-
getHereContextNodeIncludeButSearch
public org.w3c.dom.Node getHereContextNodeIncludeButSearch()
Method getHereContextNodeIncludeButSearch- Returns:
- the string
-
getHereContextNodeExcludeButSearch
public org.w3c.dom.Node getHereContextNodeExcludeButSearch()
Method getHereContextNodeExcludeButSearch- Returns:
- the string
-
getHereContextNodeExclude
public org.w3c.dom.Node getHereContextNodeExclude()
Method getHereContextNodeExclude- Returns:
- the string
-
getBaseLocalName
public final java.lang.String 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
public final java.lang.String 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.
-
-