org.livetribe.slp
Class Attributes.Entry

java.lang.Object
  extended by org.livetribe.slp.Attributes.Entry
Enclosing class:
Attributes

public static class Attributes.Entry
extends Object

Represent the attribute value within the Attributes class. An Entry encapsulates the attribute value(s) and type.


Method Summary
 boolean equals(Object obj)
           
 Object getValue()
          Returns the value of this entry (in case it is single valued), or the first value of this entry (in case it is multivalued).
 Object[] getValues()
          Returns the values of this entry (in case it is multivalued), or the value of this entry, wrapped in an array of length 1 (in case it is single valued).
 int hashCode()
           
 boolean isBooleanType()
          Returns true if this entry is of type boolean.
 boolean isLongType()
          Returns true if this entry is of type long (a natural number).
 boolean isOpaqueType()
          Returns true if this entry is of type opaque.
 boolean isPresenceType()
          Returns true if this entry represent only the presence of a tag with no value.
 boolean isStringType()
          Returns true if this entry is of type string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isStringType

public boolean isStringType()
Returns true if this entry is of type string.


isLongType

public boolean isLongType()
Returns true if this entry is of type long (a natural number).


isBooleanType

public boolean isBooleanType()
Returns true if this entry is of type boolean.


isOpaqueType

public boolean isOpaqueType()
Returns true if this entry is of type opaque.


isPresenceType

public boolean isPresenceType()
Returns true if this entry represent only the presence of a tag with no value.


getValue

public Object getValue()
Returns the value of this entry (in case it is single valued), or the first value of this entry (in case it is multivalued).


getValues

public Object[] getValues()
Returns the values of this entry (in case it is multivalued), or the value of this entry, wrapped in an array of length 1 (in case it is single valued).


equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2006-2012 LiveTribe. All Rights Reserved.