public class JSONResourceInfo
extends java.lang.Object
Constructor and Description |
---|
JSONResourceInfo(JSONObjectInfo joi,
java.lang.String resourceName,
boolean multiple)
Constructor will be called on Resource generation
|
JSONResourceInfo(java.lang.String resourceName,
java.lang.String resourceType,
java.lang.String useWith,
java.lang.String endPointName,
java.lang.String url,
boolean multiple,
java.lang.String description,
java.lang.String targetObject,
java.lang.String collectionProp,
java.lang.String pageParams,
java.lang.String orderbyParam,
java.lang.String nullFormat,
java.lang.String stringQualifier,
int fetchLimit,
boolean enabled,
java.lang.String processor)
Constructor will be called on processing of the Resource
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
getAttributeMap()
Return attribute map.
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributesForObject(java.lang.String objectname)
Return attribute map of an object.
|
java.lang.String |
getCollectionProp()
Return collection property.
|
java.lang.String |
getDescription()
Return resource description.
|
java.lang.String |
getEndPointName()
Return end point name.
|
int |
getFetchLImit()
Return fetch limit for paging.
|
java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,JSONMapAttributeInfo>> |
getMergeAttributeMap()
Return merge attribute map.
|
java.lang.String |
getName()
Return resource name.
|
java.lang.String |
getNullFormat()
Return null format.
|
java.util.Map<java.lang.String,JSONObjectInfo> |
getObjectMap()
Return map of all objects in resource.
|
java.lang.String |
getOrderByParam()
Return order by parameter.
|
java.lang.String |
getPagingParams()
Return paging parameters.
|
java.util.Map<java.lang.String,JSONObjectInfo> |
getPropToObjectMap()
Return mapping of all properties to object.
|
java.lang.String |
getResourceProcessor()
Return order by parameter.
|
java.lang.String |
getResourceType()
Return resource type.
|
JSONObjectInfo |
getRootObject()
Return root object.
|
java.lang.String |
getStringQualifier()
Return string qualifier.
|
java.lang.String |
getTargetObject()
Return target application object for merging.
|
java.lang.String |
getUrl()
Return url.
|
java.lang.String |
getUseWith()
Return use with.
|
boolean |
isEnabled()
Return is resource enabled.
|
boolean |
isMultiple()
Return is resource multiple.
|
void |
setRootObject(JSONObjectInfo joi)
Set object info as root object.
|
void |
setUrl(java.lang.String url)
Set url
|
public JSONResourceInfo(java.lang.String resourceName, java.lang.String resourceType, java.lang.String useWith, java.lang.String endPointName, java.lang.String url, boolean multiple, java.lang.String description, java.lang.String targetObject, java.lang.String collectionProp, java.lang.String pageParams, java.lang.String orderbyParam, java.lang.String nullFormat, java.lang.String stringQualifier, int fetchLimit, boolean enabled, java.lang.String processor)
resourceName
- resource nameresourceType
- resource typeendPointName
- resource end point namemultiple
- is resource multipledescription
- descriptiontargetObject
- target object (used for merge object)public JSONResourceInfo(JSONObjectInfo joi, java.lang.String resourceName, boolean multiple)
joi
- JSONObjectInfo objectresourceName
- resource namemultiple
- is multiplepublic void setRootObject(JSONObjectInfo joi)
joi
- JSONObjectInfo objectpublic JSONObjectInfo getRootObject()
public java.util.Map<java.lang.String,JSONObjectInfo> getObjectMap()
public java.util.Map<java.lang.String,JSONObjectInfo> getPropToObjectMap()
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getAttributeMap()
public java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,JSONMapAttributeInfo>> getMergeAttributeMap()
public java.util.Map<java.lang.String,java.lang.String> getAttributesForObject(java.lang.String objectname)
objectname
- object namepublic java.lang.String getName()
public java.lang.String getResourceType()
public java.lang.String getUseWith()
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- public java.lang.String getEndPointName()
public java.lang.String getDescription()
public java.lang.String getTargetObject()
public java.lang.String getCollectionProp()
public boolean isMultiple()
public boolean isEnabled()
public int getFetchLImit()
public java.lang.String getPagingParams()
public java.lang.String getStringQualifier()
public java.lang.String getNullFormat()
public java.lang.String getOrderByParam()
public java.lang.String getResourceProcessor()