Esri Geoportal Server
1.0

com.esri.gpt.framework.collection
Class StringAttribute

java.lang.Object
  extended by com.esri.gpt.framework.collection.StringAttribute
Direct Known Subclasses:
UserAttribute

public class StringAttribute
extends Object

A key/value pair of strings.


Keys are trimmed, null keys are treated as empty strings.
Values are trimmed, null values are treated as empty strings.


Constructor Summary
StringAttribute()
          Default constructor.
StringAttribute(String key, String value)
          Constructs with a supplied key and value.
 
Method Summary
 String getKey()
          Gets the key.
 String getValue()
          Gets the value.
 void setKey(String key)
          Sets the key.
 void setValue(String value)
          Sets the value.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringAttribute

public StringAttribute()
Default constructor.


StringAttribute

public StringAttribute(String key,
                       String value)
Constructs with a supplied key and value.

Parameters:
key - the key
value - the value
Method Detail

getKey

public String getKey()
Gets the key.

Returns:
the key

setKey

public void setKey(String key)
Sets the key.
The key will be trimmed. A null key is treated as an empty string.

Parameters:
key - the key

getValue

public String getValue()
Gets the value.

Returns:
the key

setValue

public void setValue(String value)
Sets the value.
The value will be trimmed. A null value is treated as an empty string.

Parameters:
value - the value

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class Object
Returns:
the string

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.