Esri Geoportal Server
1.0

com.esri.gpt.server.assertion.components
Class AsnUIResource

java.lang.Object
  extended by com.esri.gpt.server.assertion.components.AsnProperty
      extended by com.esri.gpt.server.assertion.components.AsnUIResource

public class AsnUIResource
extends AsnProperty

Represents a UI resource.


Constructor Summary
AsnUIResource()
          Default constructor
AsnUIResource(AsnUIResource objectToDuplicate)
          Construct by duplicating an existing object.
AsnUIResource(String predicate, String resourceKey, String defaultValue)
          Constructs with a resource key and default value.
 
Method Summary
 AsnUIResource duplicate()
          Produces a deep clone of the object.
 String getDefaultValue()
          Gets the default value.
 String getResourceKey()
          Gets the UI property bundle resource key.
 String getResourceValue()
          Gets the resource value.
 String getValue()
          Gets the value.
 void setDefaultValue(String defaultValue)
          Sets the default value.
 void setResourceKey(String resourceKey)
          Sets the UI property bundle resource key.
 void setResourceValue(String resourceValue)
          Sets the resource value.
 void setValue(String value)
          Sets the value.
 
Methods inherited from class com.esri.gpt.server.assertion.components.AsnProperty
asJson, asXml, ensureChildren, getChildren, getPredicate, getQuoteJsonValue, getSubject, hasChildren, setChildren, setPredicate, setQuoteJsonValue, setSubject, toJson, toXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsnUIResource

public AsnUIResource()
Default constructor


AsnUIResource

public AsnUIResource(String predicate,
                     String resourceKey,
                     String defaultValue)
Constructs with a resource key and default value.

Parameters:
predicate - the predicate
resourceKey - the resource key
defaultValue - the default value

AsnUIResource

public AsnUIResource(AsnUIResource objectToDuplicate)
Construct by duplicating an existing object.

Parameters:
objectToDuplicate - the object to duplicate
Method Detail

getDefaultValue

public String getDefaultValue()
Gets the default value.

Returns:
the default value

setDefaultValue

public void setDefaultValue(String defaultValue)
Sets the default value.

Parameters:
defaultValue - the default value

getResourceKey

public String getResourceKey()
Gets the UI property bundle resource key.

Returns:
the resource key

setResourceKey

public void setResourceKey(String resourceKey)
Sets the UI property bundle resource key.

Parameters:
resourceKey - the resource key

getResourceValue

public String getResourceValue()
Gets the resource value.

Returns:
the resource value

setResourceValue

public void setResourceValue(String resourceValue)
Sets the resource value.

Parameters:
resourceValue - the resource value

getValue

public String getValue()
Gets the value.

Overrides:
getValue in class AsnProperty
Returns:
the value

setValue

public void setValue(String value)
Sets the value.

Overrides:
setValue in class AsnProperty
Parameters:
value - the value

duplicate

public AsnUIResource duplicate()
Produces a deep clone of the object.
The duplication constructor is invoked.
return new AsnUIResource(this);

Overrides:
duplicate in class AsnProperty
Returns:
the duplicated object

Esri Geoportal Server
1.0

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