com.sun.ebxml.registry.security.authorization
Class ObjectAttribute

java.lang.Object
  |
  +--com.sun.xacml.attr.AttributeValue
        |
        +--com.sun.ebxml.registry.security.authorization.ObjectAttribute
All Implemented Interfaces:
com.sun.xacml.cond.Evaluatable

public class ObjectAttribute
extends com.sun.xacml.attr.AttributeValue

Representation of an java.lang.Object value. All objects of this class are immutable and all methods of the class are thread-safe.

Author:
Farrukh Najmi

Field Summary
static java.lang.String identifier
          Official name of this type
 
Constructor Summary
ObjectAttribute(java.lang.Object value)
          Creates a new ObjectAttribute that represents the Object value supplied.
 
Method Summary
 java.lang.String encode()
           
 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 ObjectAttribute getInstance(org.w3c.dom.Node root)
          Returns a new ObjectAttribute that represents a java.lang.Object.
static ObjectAttribute getInstance(java.lang.Object value)
          Returns a new ObjectAttribute that represents the Object value indicated by the Object provided.
 java.lang.Object getValue()
          Returns the Object 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, 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
Constructor Detail

ObjectAttribute

public ObjectAttribute(java.lang.Object value)
Creates a new ObjectAttribute that represents the Object value supplied.

Parameters:
value - the Object value to be represented
Method Detail

getInstance

public static ObjectAttribute getInstance(org.w3c.dom.Node root)
Returns a new ObjectAttribute that represents a java.lang.Object.

Parameters:
root - the Node that contains the desired value
Returns:
a new ObjectAttribute representing the appropriate value (null if there is a parsing error)

getInstance

public static ObjectAttribute getInstance(java.lang.Object value)
Returns a new ObjectAttribute that represents the Object value indicated by the Object provided.

Parameters:
value - a Object representing the desired value
Returns:
a new ObjectAttribute representing the appropriate value

getValue

public java.lang.Object getValue()
Returns the Object value represented by this object.

Returns:
the Object value

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.

Overrides:
equals in class java.lang.Object
Parameters:
o - the object to compare
Returns:
true if this object and the input represent the same value

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.

Overrides:
hashCode in class java.lang.Object
Returns:
the object's hashcode value

toString

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

Overrides:
toString in class java.lang.Object
Returns:
the String representation

encode

public java.lang.String encode()
Specified by:
encode in class com.sun.xacml.attr.AttributeValue


Copyright © 2001-2003 OASIS. All Rights Reserved.