public class AttributeSelector extends PolicySchemaObject implements Expression
Modifier and Type | Field and Description |
---|---|
private URI |
dataType |
private boolean |
mustBePresent |
private java.lang.String |
requestContextPath |
private static long |
serialVersionUID |
NAMESPACE, NAMESPACE_PREFIX
Constructor and Description |
---|
AttributeSelector(org.w3c.dom.Node root)
Parses AttributeSelector from DOM node
|
AttributeSelector(URI dataType,
java.lang.String requestContextPath,
boolean mustBePresent)
Constructs AttributeSelector with the designated values
|
Modifier and Type | Method and Description |
---|---|
void |
encodeAttributes(java.io.PrintStream ps) |
boolean |
equals(java.lang.Object other) |
URI |
getDataType()
Returns XML data-type
|
java.lang.String |
getElementName() |
java.lang.String |
getRequestContextPath()
Returns request context XPath expression
|
int |
internalHashCode() |
boolean |
isMustBePresent()
Returns must be present flag
|
getDesiredNamespacePrefix, getNamespace
encode, encode, encodeBody, encodeChildren, escapeXML, getLocalName, getPrintStream, hasBody, hasChildren, hashCode, toString
private static final long serialVersionUID
private java.lang.String requestContextPath
private URI dataType
private boolean mustBePresent
public AttributeSelector(URI dataType, java.lang.String requestContextPath, boolean mustBePresent)
dataType
- XML data-typerequestContextPath
- Request context XPath expressionmustBePresent
- true if XPath expression must evaluate to a node in contextpublic AttributeSelector(org.w3c.dom.Node root) throws URISyntaxException
root
- DOM nodeURISyntaxException
- thrown if invalid URI encounteredpublic java.lang.String getElementName()
getElementName
in class SchemaObject
public void encodeAttributes(java.io.PrintStream ps)
encodeAttributes
in class SchemaObject
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int internalHashCode()
internalHashCode
in class SchemaObject
public java.lang.String getRequestContextPath()
public URI getDataType()
public boolean isMustBePresent()