Esri Geoportal Server
1.0

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

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

public class AsnSupportedValues
extends Object

Holds a domain values supported by an assertion operation.


Constructor Summary
AsnSupportedValues()
          Default constructor
AsnSupportedValues(AsnSupportedValues objectToDuplicate)
          Construct by duplicating an existing object.
AsnSupportedValues(String tokens, String delimiter)
          Constructs the set of supported values from a delimited string.
 
Method Summary
 void add(String value)
          Adds a supported value to the domain.
 AsnSupportedValues duplicate()
          Produces a deep clone of the object.
 String getSupportedValue(String requestedValue)
          Gets the supported value associated with a requested value.
 boolean isValueSupported(String requestedValue)
          Determines if a requested value is supported.
 Collection<String> values()
          Returns the collection of values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsnSupportedValues

public AsnSupportedValues()
Default constructor


AsnSupportedValues

public AsnSupportedValues(String tokens,
                          String delimiter)
Constructs the set of supported values from a delimited string.

Parameters:
tokens - the delimited string to tokenize
delimiter - the delimiter

AsnSupportedValues

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

Parameters:
objectToDuplicate - the object to duplicate
Method Detail

add

public void add(String value)
Adds a supported value to the domain.

Parameters:
value - the value to add

duplicate

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

Returns:
the duplicated object

getSupportedValue

public String getSupportedValue(String requestedValue)
Gets the supported value associated with a requested value.

Parameters:
requestedValue - the requested value
Returns:
the supported value (null if unsupported)

isValueSupported

public boolean isValueSupported(String requestedValue)
Determines if a requested value is supported.

Parameters:
requestedValue - the requested value
Returns:
true if the value is supported

values

public Collection<String> values()
Returns the collection of values.

Returns:
the supported values

Esri Geoportal Server
1.0

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