public class AnyURIAttribute extends AttributeValue
Modifier and Type | Field and Description |
---|---|
static String |
identifier
Official name of this type
|
Constructor and Description |
---|
AnyURIAttribute(URI value)
Creates a new
AnyURIAttribute that represents the URI value supplied. |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Encodes the value in a form suitable for including in XML data like a request or an
obligation.
|
boolean |
equals(Object o)
Returns true if the input is an instance of this class and if its value equals the value
contained in this class.
|
static AnyURIAttribute |
getInstance(Node root)
Returns a new
AnyURIAttribute that represents the xs:anyURI at a particular DOM
node. |
static AnyURIAttribute |
getInstance(String value)
Returns a new
AnyURIAttribute that represents the xs:anyURI value indicated by
the String provided. |
URI |
getValue()
Returns the
URI value represented by this object. |
int |
hashCode()
Returns the hashcode value used to index and compare this object with others of the same
type.
|
String |
toString()
Converts to a String representation.
|
encode, encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBag
public static final String identifier
public AnyURIAttribute(URI value)
AnyURIAttribute
that represents the URI value supplied.value
- the URI
value to be representedpublic static AnyURIAttribute getInstance(Node root) throws URISyntaxException
AnyURIAttribute
that represents the xs:anyURI at a particular DOM
node.root
- the Node
that contains the desired valueAnyURIAttribute
representing the appropriate value (null if there
is a parsing error)URISyntaxException
public static AnyURIAttribute getInstance(String value) throws URISyntaxException
AnyURIAttribute
that represents the xs:anyURI value indicated by
the String
provided.value
- a string representing the desired valueAnyURIAttribute
representing the appropriate valueURISyntaxException
public URI getValue()
URI
value represented by this object.URI
valuepublic boolean equals(Object o)
public int hashCode()
public String toString()
public String encode()
AttributeValue
encode
in class AttributeValue
String
form of the valueCopyright © 2021 WSO2. All rights reserved.