com.xebialabs.xltype.serialization.json
Class CiJsonReader

java.lang.Object
  extended by com.xebialabs.xltype.serialization.json.CiJsonReader
All Implemented Interfaces:
CiReader

public class CiJsonReader
extends java.lang.Object
implements CiReader


Constructor Summary
CiJsonReader(org.codehaus.jettison.json.JSONObject json)
           
 
Method Summary
static CiJsonReader create(java.lang.String jsonObject)
           
 java.lang.String getCiReference()
           
 java.util.List<java.lang.String> getCiReferences()
           
 CiListReader getCurrentCiListReader()
           
 java.lang.String getCurrentPropertyName()
           
 java.lang.String getId()
           
 java.util.Map<java.lang.String,java.lang.String> getStringMap()
           
 java.lang.String getStringValue()
           
 java.util.List<java.lang.String> getStringValues()
           
 java.lang.String getToken()
           
 java.lang.String getType()
           
 java.util.List<com.xebialabs.deployit.plugin.api.validation.ValidationMessage> getValidationMessages()
           
 boolean hasMoreProperties()
           
 boolean isCiReference()
           
 CiReader moveIntoNestedProperty()
           
 void moveIntoProperty()
           
 void moveOutOfProperty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CiJsonReader

public CiJsonReader(org.codehaus.jettison.json.JSONObject json)
Method Detail

create

public static CiJsonReader create(java.lang.String jsonObject)

getType

public java.lang.String getType()
Specified by:
getType in interface CiReader

getId

public java.lang.String getId()
Specified by:
getId in interface CiReader

getToken

public java.lang.String getToken()
Specified by:
getToken in interface CiReader

hasMoreProperties

public boolean hasMoreProperties()
Specified by:
hasMoreProperties in interface CiReader

moveIntoProperty

public void moveIntoProperty()
Specified by:
moveIntoProperty in interface CiReader

moveIntoNestedProperty

public CiReader moveIntoNestedProperty()
Specified by:
moveIntoNestedProperty in interface CiReader

moveOutOfProperty

public void moveOutOfProperty()
Specified by:
moveOutOfProperty in interface CiReader

getCurrentPropertyName

public java.lang.String getCurrentPropertyName()
Specified by:
getCurrentPropertyName in interface CiReader

getStringValue

public java.lang.String getStringValue()
Specified by:
getStringValue in interface CiReader

getStringValues

public java.util.List<java.lang.String> getStringValues()
Specified by:
getStringValues in interface CiReader

getStringMap

public java.util.Map<java.lang.String,java.lang.String> getStringMap()
Specified by:
getStringMap in interface CiReader

isCiReference

public boolean isCiReference()
Specified by:
isCiReference in interface CiReader

getCiReference

public java.lang.String getCiReference()
Specified by:
getCiReference in interface CiReader

getCiReferences

public java.util.List<java.lang.String> getCiReferences()
Specified by:
getCiReferences in interface CiReader

getCurrentCiListReader

public CiListReader getCurrentCiListReader()
Specified by:
getCurrentCiListReader in interface CiReader

getValidationMessages

public java.util.List<com.xebialabs.deployit.plugin.api.validation.ValidationMessage> getValidationMessages()
Specified by:
getValidationMessages in interface CiReader