com.atlassian.crowd.integration.osuser
Class PropertyParser.ValueHolder

java.lang.Object
  extended by com.atlassian.crowd.integration.osuser.PropertyParser.ValueHolder
All Implemented Interfaces:
Comparable
Enclosing class:
PropertyParser

protected static class PropertyParser.ValueHolder
extends Object
implements Comparable

This is a holder for a key-pair and the property value.


Constructor Summary
PropertyParser.ValueHolder(PropertyParser.Pair key, String value)
          Constructs a new instance of this class with given key pair and the property value.
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 PropertyParser.Pair getPair()
          Returns the property key pair
 String getPropertyName()
          Returns the name of the property (suffix of the key pair)
 String getValue()
          Returns the property value
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyParser.ValueHolder

public PropertyParser.ValueHolder(PropertyParser.Pair key,
                                  String value)
Constructs a new instance of this class with given key pair and the property value.

Parameters:
key - property key pair
value - property value
Method Detail

getPair

public PropertyParser.Pair getPair()
Returns the property key pair

Returns:
property key pair

getPropertyName

public String getPropertyName()
Returns the name of the property (suffix of the key pair)

Returns:
name of the property (suffix of the key pair)

getValue

public String getValue()
Returns the property value

Returns:
property value

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Atlassian. All Rights Reserved.