info.sswap.http.representation
Class ArrayValue

java.lang.Object
  extended by info.sswap.http.representation.ValueBase
      extended by info.sswap.http.representation.ArrayValue
All Implemented Interfaces:
Value

public class ArrayValue
extends ValueBase


Field Summary
private  Value[] array
          The underlying array of values
 
Constructor Summary
ArrayValue()
          Creates an empty array of values
ArrayValue(Value[] array)
          Creates an array of values initialized with the specified java array.
 
Method Summary
 Value[] asArray()
          Gets the representation of this value as an array of values.
 boolean isArray()
          Checks whether this value is an array of values.
 
Methods inherited from class info.sswap.http.representation.ValueBase
asBoolean, asDouble, asEntity, asInteger, asLiteral, asString, isBoolean, isDouble, isEntity, isInteger, isLiteral
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

array

private Value[] array
The underlying array of values

Constructor Detail

ArrayValue

public ArrayValue()
Creates an empty array of values


ArrayValue

public ArrayValue(Value[] array)
Creates an array of values initialized with the specified java array.

Parameters:
array - the initial java array
Method Detail

isArray

public boolean isArray()
Description copied from interface: Value
Checks whether this value is an array of values.

Specified by:
isArray in interface Value
Overrides:
isArray in class ValueBase
Returns:
true if the value is an array

asArray

public Value[] asArray()
Description copied from interface: Value
Gets the representation of this value as an array of values.

Specified by:
asArray in interface Value
Overrides:
asArray in class ValueBase
Returns:
the representation of this value as an array


Copyright (c) 2010, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.