Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.xacml.attr
Class AnyURIAttribute  view AnyURIAttribute download AnyURIAttribute.java

java.lang.Object
  extended bycom.sun.xacml.attr.AttributeValue
      extended bycom.sun.xacml.attr.AnyURIAttribute
All Implemented Interfaces:
com.sun.xacml.cond.Evaluatable

public class AnyURIAttribute
extends AttributeValue

Representation of an xs:anyURI value. This class supports parsing xs:anyURI values.

Since:
1.0

Field Summary
private static java.lang.RuntimeException earlyException
           
static java.lang.String identifier
          Official name of this type
private static java.net.URI identifierURI
           
private  java.net.URI value
           
 
Fields inherited from class com.sun.xacml.attr.AttributeValue
 
Constructor Summary
AnyURIAttribute(java.net.URI value)
          Creates a new AnyURIAttribute that represents the URI value supplied.
 
Method Summary
 java.lang.String encode()
          Encodes the value in a form suitable for including in XML data like a request or an obligation.
 boolean equals(java.lang.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(org.w3c.dom.Node root)
          Returns a new AnyURIAttribute that represents the xs:anyURI at a particular DOM node.
static AnyURIAttribute getInstance(java.lang.String value)
          Returns a new AnyURIAttribute that represents the xs:anyURI value indicated by the String provided.
 java.net.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.
 java.lang.String toString()
          Converts to a String representation.
 
Methods inherited from class com.sun.xacml.attr.AttributeValue
encode, encode, encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

identifier

public static final java.lang.String identifier
Official name of this type

See Also:
Constant Field Values

identifierURI

private static java.net.URI identifierURI

earlyException

private static java.lang.RuntimeException earlyException

value

private java.net.URI value
Constructor Detail

AnyURIAttribute

public AnyURIAttribute(java.net.URI value)
Creates a new AnyURIAttribute that represents the URI value supplied.

Method Detail

getInstance

public static AnyURIAttribute getInstance(org.w3c.dom.Node root)
                                   throws java.net.URISyntaxException
Returns a new AnyURIAttribute that represents the xs:anyURI at a particular DOM node.


getInstance

public static AnyURIAttribute getInstance(java.lang.String value)
                                   throws java.net.URISyntaxException
Returns a new AnyURIAttribute that represents the xs:anyURI value indicated by the String provided.


getValue

public java.net.URI getValue()
Returns the URI value represented by this object.


equals

public boolean equals(java.lang.Object o)
Returns true if the input is an instance of this class and if its value equals the value contained in this class.


hashCode

public int hashCode()
Returns the hashcode value used to index and compare this object with others of the same type. Typically this is the hashcode of the backing data object.


toString

public java.lang.String toString()
Converts to a String representation.


encode

public java.lang.String encode()
Description copied from class: AttributeValue
Encodes the value in a form suitable for including in XML data like a request or an obligation. This must return a value that could in turn be used by the factory to create a new instance with the same value.

Specified by:
encode in class AttributeValue