public class OslcJSONStructureObject extends StructureData
XSI_NAMESPACE
Constructor and Description |
---|
OslcJSONStructureObject() |
OslcJSONStructureObject(org.jdom.Document input)
Construct the StructureData object with a prepared document.
|
OslcJSONStructureObject(org.jdom.Element data)
Construct the Structure Object object.
|
OslcJSONStructureObject(com.ibm.json.java.JSONArtifact data,
java.lang.String mosName,
java.lang.String path,
java.lang.String messageType,
UserInfo userInfo,
boolean leanJson)
Construct the StructureData object with a byte array.
|
OslcJSONStructureObject(java.lang.String operaton,
java.lang.String osName,
java.lang.String lang,
int size,
boolean isEvent,
boolean isResponse)
Construct the StructureData object.
|
Modifier and Type | Method and Description |
---|---|
void |
createChildrenData(java.lang.String name)
Create Child level from current level
|
java.lang.String |
getAttr(java.lang.String attr)
Return Attribute Value from current level if Attribute found else return null
|
java.lang.String |
getAttr(java.lang.String col,
java.lang.String attr)
Return Attribute Value if Attribute found else return null
|
java.util.List |
getChildrenData()
Get child Elements as a list
|
java.util.List |
getChildrenData(java.lang.String name)
Get list of Elements for the given tag name
|
java.util.Iterator |
getChildrenKeys()
Get child Elements as a list
|
java.lang.String |
getCurrentAction()
Return value for the current level action
|
org.jdom.Element |
getCurrentData()
Return currentData Element
|
java.lang.String |
getCurrentData(java.lang.String col)
Return value for the column name in CurrentData Element as String Value
|
java.lang.String |
getCurrentDataAsBinaryText(java.lang.String col)
Return value for the column name in CurrentData Element as binary text
|
boolean |
getCurrentDataAsBoolean(java.lang.String col)
Return value for the column name in CurrentData Element as boolean
|
byte[] |
getCurrentDataAsBytes(java.lang.String col)
Return value for the column name in CurrentData Element as byte Value
|
java.util.Date |
getCurrentDataAsDate(java.lang.String col)
Return value for the column name in CurrentData Element as date
|
double |
getCurrentDataAsDouble(java.lang.String col)
Return value for the column name in CurrentData Element as double
|
org.jdom.Element |
getCurrentDataAsElement(java.lang.String key)
Return value for the column name in CurrentData Element as Element object
|
int |
getCurrentDataAsInt(java.lang.String col)
Return value for the column name in CurrentData Element as integer
|
java.util.List |
getCurrentDataAsList(java.lang.String key)
Return value for the column name in CurrentData Element as Element Array
object
|
long |
getCurrentDataAsLong(java.lang.String col)
Return value for the column name in CurrentData Element as long
|
java.lang.String |
getCurrentDataAsString(java.lang.String col)
Return value for the column name in CurrentData Element as String Value
|
java.lang.String |
getCurrentNamespacePrefix()
Return current namespace value
|
java.lang.String |
getCurrentNamespaceURI()
Return current namespace URI value
|
StructureObject |
getCurrentObject()
Return Main MBO which associated with current noun
|
java.lang.String |
getGL(java.lang.String col)
Return value for the GL column name in CurrentData Element as String
Value
|
java.lang.String |
getGL(java.lang.String col,
java.lang.String orgId)
Return value for the GL column name in CurrentData Element as String
Value
|
java.lang.String |
getGLComponent(java.lang.String col,
int order,
java.lang.String orgId)
Return value GL component for the specified order
|
java.lang.String |
getLocalRef() |
java.lang.String |
getName()
Get Name of the Element
|
java.util.Map<java.lang.String,java.lang.String> |
getNamespaces()
Get Map of all namespaces
|
java.lang.String |
getObjectPath()
Get Object Path of the object
|
int |
getOverrideType(java.lang.String col,
int currentType)
Return current type of the field
|
org.jdom.Element |
getParentData()
Return parentData Element
|
java.lang.String |
getParentData(java.lang.String col)
Return value for the column name from the parent Data Element as String
Value
|
com.ibm.json.java.JSONObject |
getParentJSONData()
Return parentData Element
|
java.lang.String |
getParentPath()
Return parentData Element
|
java.lang.String |
getRowStamp()
Return value for the column name in CurrentData Element as String Value
|
UserInfo |
getUserInfo()
Get User Info object
|
boolean |
hasChildren()
Get child Elements as a list
|
boolean |
hasDetailData(java.lang.String childPath)
Return TRUE or FALSE depending of null value in the column
|
boolean |
isCurrentActionNull()
Determine whether Action of the current data of
Structure Object is null
|
boolean |
isCurrentDataChanged(java.lang.String col)
Return TRUE or FALSE depending of null value in the column
|
boolean |
isCurrentDataNull(java.lang.String col)
Return TRUE or FALSE depending of null value in the column
|
boolean |
isCurrentDataObject(java.lang.String col)
Is child JSONObject or JSONArray so it is not an attribute but child object
|
boolean |
isGLDataNull(java.lang.String col)
Return TRUE or FALSE depending of null value in the GL column
|
boolean |
isGLDataNull(java.lang.String col,
java.lang.String orgId)
Return TRUE or FALSE depending of null value in the GL column
|
boolean |
isHidden()
Determine whether Action of the current data of
Structure Object is null
|
boolean |
isInCurrentData(java.lang.String col)
Return TRUE or FALSE depending of null value in the column
|
void |
removeChildData(java.lang.String childName,
int index)
Remove the specified child of the CurrentData Element at the specified
index.
|
void |
removeChildren(java.lang.String childName)
Remove the specified child of the CurrentData Element
|
void |
removeFromCurrentData(java.lang.String col)
Remove a column from the current data
|
void |
setCurrentAction(java.lang.String action)
Set current Element action
|
void |
setCurrentData(java.lang.String colname,
byte[] data)
Put element to Current Data Element object as bytes
|
void |
setCurrentData(java.lang.String colname,
java.util.Date data)
Put element to Current Data Element object as date
|
void |
setCurrentData(java.lang.String colname,
double data)
Put element to Current Data Element object as double
|
void |
setCurrentData(java.lang.String colname,
int data)
Put element to Current Data Element object as integer
|
void |
setCurrentData(java.lang.String colname,
long data)
Put element to Current Data Element object as long
|
void |
setCurrentData(java.lang.String colname,
java.lang.String data)
Add element to Current Data Element object as string
|
void |
setCurrentDataNull(java.lang.String colname)
Set data in curent data to null
|
void |
setCurrentNamespace(java.lang.String pref,
java.lang.String uri)
Srt current namespace value
|
void |
setGL(java.lang.String colname,
java.lang.String glString)
Construct and set the GLAccount from the given gl string
|
void |
setGL(java.lang.String colname,
java.lang.String[] glSegments,
java.lang.String orgId)
Construct and set the GLAccount from the given gl segments
|
void |
setNamespaces(java.lang.String key,
java.lang.String data)
Set Map of all namespaces
|
void |
setParentJSONData(com.ibm.json.java.JSONObject parent,
java.lang.String path)
Return parentData Element
|
void |
setXPathData(java.lang.String xPathExpression,
java.lang.String data)
Get Data using XPath expression
|
java.lang.String |
toString()
return a string for structure to be able to use the structure as a string
anywhere such as in System.out.println
|
addIntObject, addObjectStructure, breakData, breakIntObject, breakObjectStructure, clear, clone, createChildrenData, getAction, getBuild, getCurrentMbo, getCurrentPosition, getData, getDataAsBytes, getDataAsString, getDbBuild, getHierarchyObjectList, getIntObjectList, getJsonRequest, getLanguage, getMajorVersion, getMboArray, getMboFromMemory, getMessageID, getMinorVersion, getOriginalByteData, getPrimaryObject, getPrimaryObjectAsObject, getPrimaryObjectList, getPrimaryObjectName, getRealMbo, getRootName, getSize, getStructureObject, getStructureObject, getStructureObjectList, getTransLanguage, getXPathData, hasDocument, isActionNull, isBroken, isIR, isMultiIntObject, isMultiObjectStructure, isPatch, moveToFirstIntObject, moveToFirstObjectStruture, moveToNextIntObject, moveToNextObjectStructure, moveToPrevIntObject, moveToPrevObjectStructure, removeChildren, removeChildrenFromPrimaryObject, removeCurrentData, removeCurrentIntObject, removeCurrentObjectStructure, setAction, setActionNull, setAsCurrent, setAsCurrent, setAsCurrent, setAsCurrent, setAsCurrent, setChildrenData, setCurrentMbo, setCurrentPosition, setIsPatch, setJsonRequest, setMboArray, setMessageID, setMicData, setParentAsCurrent, setPrimaryObject, setPrimaryObject, setRealMbo
isContentLocalized, isEditMode, isSaveEditMode, isSetValueMode, setEditMode, setGL, setSaveEditMode, setSetValueMode
public OslcJSONStructureObject(java.lang.String operaton, java.lang.String osName, java.lang.String lang, int size, boolean isEvent, boolean isResponse) throws MXException, java.rmi.RemoteException
operaton
- The operation of the service/channelosName
- The object structure name.lang
- The language of transaction.size
- The object size.isEvent
- Determines if thats an event.isResponse
- Determines if thats a response.MXException,
- RemoteExceptionMXException
java.rmi.RemoteException
public OslcJSONStructureObject(org.jdom.Document input) throws MXException
input
- the jdom documentMXException
public OslcJSONStructureObject(com.ibm.json.java.JSONArtifact data, java.lang.String mosName, java.lang.String path, java.lang.String messageType, UserInfo userInfo, boolean leanJson)
data
- byte array for the MOS XMLMXException
public OslcJSONStructureObject(org.jdom.Element data)
data
- Current element.public OslcJSONStructureObject()
public java.lang.String getName()
getName
in class StructureObject
public java.lang.String getObjectPath()
public UserInfo getUserInfo()
public void createChildrenData(java.lang.String name)
createChildrenData
in class StructureObject
name
- Name of the child level. This will still maintain the current
data pointer to the current level and not move to the child
level.public java.util.List getChildrenData(java.lang.String name)
getChildrenData
in class StructureObject
tag
- The name of the child level.public boolean hasDetailData(java.lang.String childPath)
hasDetailData
in class StructureObject
col
- Give column name.public java.util.List getChildrenData()
getChildrenData
in class StructureData
public java.util.Iterator getChildrenKeys()
getChildrenKeys
in class StructureObject
public boolean hasChildren()
hasChildren
in class StructureObject
public boolean isCurrentActionNull()
isCurrentActionNull
in class StructureObject
public boolean isHidden() throws MXException
isHidden
in class StructureObject
MXException
public org.jdom.Element getCurrentData()
getCurrentData
in class StructureObject
public StructureObject getCurrentObject()
getCurrentObject
in class StructureData
public org.jdom.Element getParentData()
getParentData
in class StructureObject
public com.ibm.json.java.JSONObject getParentJSONData()
public java.lang.String getParentPath()
public void setParentJSONData(com.ibm.json.java.JSONObject parent, java.lang.String path)
public java.lang.String getAttr(java.lang.String col, java.lang.String attr)
getAttr
in class StructureObject
col
- Give column name.attr
- Give Attribute name.public java.lang.String getAttr(java.lang.String attr)
getAttr
in class StructureObject
attr
- Give Attribute name.public void removeFromCurrentData(java.lang.String col)
removeFromCurrentData
in class StructureObject
col
- Give element name to remove.public void removeChildData(java.lang.String childName, int index)
removeChildData
in class StructureObject
childName
- Give element name to remove.index
- Give index of the element to remove.public void removeChildren(java.lang.String childName)
removeChildren
in class StructureObject
childName
- Give column name.public java.lang.String getCurrentData(java.lang.String col) throws MXException
getCurrentData
in class StructureObject
col
- Give column name.MXException
public java.lang.String getRowStamp() throws MXException
getRowStamp
in class StructureObject
col
- Give column name.MXException
public byte[] getCurrentDataAsBytes(java.lang.String col) throws MXException
getCurrentDataAsBytes
in class StructureObject
col
- Give column name.MXException
public java.lang.String getCurrentDataAsBinaryText(java.lang.String col) throws MXException
getCurrentDataAsBinaryText
in class StructureObject
col
- Give column name.MXException
public java.lang.String getParentData(java.lang.String col)
getParentData
in class StructureObject
col
- Give column name.public boolean isCurrentDataNull(java.lang.String col) throws MXException
isCurrentDataNull
in class StructureObject
col
- Give column name.MXException
public boolean isGLDataNull(java.lang.String col) throws MXException
isGLDataNull
in class StructureObject
col
- Give GL column name.MXException
public boolean isGLDataNull(java.lang.String col, java.lang.String orgId) throws MXException
isGLDataNull
in class StructureObject
col
- Give GL column name.orgId
- Give organization.MXException
public boolean isInCurrentData(java.lang.String col)
isInCurrentData
in class StructureObject
col
- Give column name.public boolean isCurrentDataChanged(java.lang.String col)
isCurrentDataChanged
in class StructureObject
col
- Give column name.public double getCurrentDataAsDouble(java.lang.String col) throws MXException
getCurrentDataAsDouble
in class StructureObject
col
- Give column name.MXException
public int getCurrentDataAsInt(java.lang.String col) throws MXException
getCurrentDataAsInt
in class StructureObject
col
- Give column name.MXException
public long getCurrentDataAsLong(java.lang.String col) throws MXException
getCurrentDataAsLong
in class StructureObject
col
- Give column name.MXException
public java.util.Date getCurrentDataAsDate(java.lang.String col) throws MXException
getCurrentDataAsDate
in class StructureObject
col
- Give column name.MXException
public boolean getCurrentDataAsBoolean(java.lang.String col) throws MXException
getCurrentDataAsBoolean
in class StructureObject
col
- Give column name.MXException
public org.jdom.Element getCurrentDataAsElement(java.lang.String key)
getCurrentDataAsElement
in class StructureObject
key
- Give key name.public java.util.List getCurrentDataAsList(java.lang.String key)
getCurrentDataAsList
in class StructureObject
key
- Give key name.public boolean isCurrentDataObject(java.lang.String col) throws MXException
isCurrentDataObject
in class StructureObject
col
- Give column name.MXException
public java.lang.String getGL(java.lang.String col) throws MXException
getGL
in class StructureObject
col
- Give column name.MXException
public java.lang.String getGL(java.lang.String col, java.lang.String orgId) throws MXException
getGL
in class StructureObject
col
- Give column name.orgId
- Give organization.MXException
public java.lang.String getGLComponent(java.lang.String col, int order, java.lang.String orgId) throws MXException
getGLComponent
in class StructureObject
col
- Give column name.order
- GL order.orgId
- the ORGID.MXException
public java.lang.String getCurrentAction()
getCurrentAction
in class StructureObject
public void setCurrentData(java.lang.String colname, java.lang.String data)
setCurrentData
in class StructureObject
col
- Give column name.data
- Give column value as string.public void setCurrentAction(java.lang.String action)
setCurrentAction
in class StructureObject
action
- action value to be set.public void setCurrentDataNull(java.lang.String colname)
setCurrentDataNull
in class StructureObject
colname
- Give column name.public void setCurrentData(java.lang.String colname, java.util.Date data)
setCurrentData
in class StructureObject
colname
- Give column name.data
- Give column value as date.public void setCurrentData(java.lang.String colname, double data)
setCurrentData
in class StructureObject
colname
- Give column name.data
- Give column value as double.public void setCurrentData(java.lang.String colname, long data)
setCurrentData
in class StructureObject
colname
- Give column name.data
- Give column value as long.public void setCurrentData(java.lang.String colname, int data)
setCurrentData
in class StructureObject
colname
- Give column name.data
- Give column value as integer.public void setCurrentData(java.lang.String colname, byte[] data) throws MXException
setCurrentData
in class StructureObject
colname
- Give column name.data
- Give column value as bytes.MXException
public void setGL(java.lang.String colname, java.lang.String[] glSegments, java.lang.String orgId) throws MXException
setGL
in class StructureObject
colname
- the column nameglSegments
- the gl segments arrayorgId
- the organizationMXException
public void setGL(java.lang.String colname, java.lang.String glString)
setGL
in class StructureObject
colname
- the column nameglString
- the gl segments arraypublic void setXPathData(java.lang.String xPathExpression, java.lang.String data) throws MXException
setXPathData
in class StructureObject
MXException
public java.lang.String getCurrentDataAsString(java.lang.String col) throws MXException
getCurrentDataAsString
in class StructureObject
col
- Give column name.MXException
public java.lang.String getCurrentNamespacePrefix()
getCurrentNamespacePrefix
in class StructureObject
public java.lang.String getCurrentNamespaceURI()
getCurrentNamespaceURI
in class StructureObject
public void setCurrentNamespace(java.lang.String pref, java.lang.String uri)
setCurrentNamespace
in class StructureObject
pref
- Give namespace prefix value.uri
- Give namespace uri value.public java.util.Map<java.lang.String,java.lang.String> getNamespaces()
getNamespaces
in class StructureObject
public void setNamespaces(java.lang.String key, java.lang.String data)
setNamespaces
in class StructureObject
key
- key to access namespacedata
- namespacepublic java.lang.String getLocalRef()
getLocalRef
in class StructureObject
public int getOverrideType(java.lang.String col, int currentType) throws MXException
getOverrideType
in class StructureObject
col
- Give column name.currentType
- max typeMXException
public java.lang.String toString()
toString
in class StructureData