org.openliberty.arisid
Class PredicateValue
java.lang.Object
org.openliberty.arisid.PredicateValue
public class PredicateValue
- extends java.lang.Object
PredicateValue is used to hold value returned from an attribute authority for a particular property.
An PredicateValue usually represents one returned property in a DigitalSubject.
The PredicateValue will also hold IGF meta response data for a property.
TODO Add IGF meta data response information
Constructor Summary |
PredicateValue(java.lang.String name,
boolean val)
This constructor is typically used to set a property value for a DigitalSubject |
PredicateValue(java.lang.String name,
java.lang.Exception error)
This constructor is used when an error or exception has occurred. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
PredicateValue
public PredicateValue(java.lang.String name,
boolean val)
- This constructor is typically used to set a property value for a DigitalSubject
- Parameters:
name
- The name of the property being returned.val
- The true or false result of the property assertion request
PredicateValue
public PredicateValue(java.lang.String name,
java.lang.Exception error)
- This constructor is used when an error or exception has occurred.
- Parameters:
name
- The name of the property being returned.error
- The exception (typically IGFException
) that occurred preventing returning the boolean result
isError
public boolean isError()
getError
public java.lang.Exception getError()
getNameIdRef
public java.lang.String getNameIdRef()
getValue
public java.lang.Boolean getValue()
- Returns:
Boolean
representing the result or null if an error or other condition exists.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object