Esri Geoportal Server
1.2.9

com.esri.gpt.framework.dcat.json
Class JsonAttribute

java.lang.Object
  extended by com.esri.gpt.framework.dcat.json.JsonAttribute

public class JsonAttribute
extends Object

Raw DCAT attribute.


Nested Class Summary
static class JsonAttribute.TYPE
          Type.
 
Constructor Summary
JsonAttribute()
           
JsonAttribute(Boolean value)
          Creates instance of the boolean attribute.
JsonAttribute(Double value)
          Creates instance of the double attribute.
JsonAttribute(String value)
          Creates instance of the string attribute.
 
Method Summary
 Boolean getBoolean()
          Gets value as boolean.
 Double getNumber()
          Gets value as number.
 String getString()
          Gets value as string.
 JsonAttribute.TYPE getType()
          Gets original value type.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonAttribute

public JsonAttribute(String value)
Creates instance of the string attribute.

Parameters:
value - value

JsonAttribute

public JsonAttribute(Double value)
Creates instance of the double attribute.

Parameters:
value - value

JsonAttribute

public JsonAttribute(Boolean value)
Creates instance of the boolean attribute.

Parameters:
value - value

JsonAttribute

public JsonAttribute()
Method Detail

getNumber

public Double getNumber()
Gets value as number.

Returns:
number

getString

public String getString()
Gets value as string.

Returns:
string

getBoolean

public Boolean getBoolean()
Gets value as boolean.

Returns:
boolean

toString

public String toString()
Overrides:
toString in class Object

getType

public JsonAttribute.TYPE getType()
Gets original value type.

Returns:
type

Esri Geoportal Server
1.2.9

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