public class OslcRDFStructureData extends OslcRDFStructureObject
XSI_NAMESPACE
Constructor and Description |
---|
OslcRDFStructureData(com.hp.hpl.jena.rdf.model.Resource data,
java.lang.String mosName,
java.lang.String path,
UserInfo userInfo,
java.lang.String messageType)
Construct the StructureData object with a byte array.
|
Modifier and Type | Method and Description |
---|---|
void |
addObjectStructure()
Adds object structure to the list of existing os records
|
void |
breakData()
Parses channel/ service document data and sets corresponding object
variables.
|
void |
breakObjectStructure()
Parses object structure and sets global variables.
|
java.lang.Object |
clone()
clones the StructureData object and the document inside it.
|
void |
createChildrenData(java.lang.String name,
boolean setAsCurrent)
Create Child level from current level
|
java.lang.String |
getAction()
Get Action of the Structure Data
|
java.lang.String |
getBuild()
Gets a build number
|
java.lang.String |
getCurrentAction()
Return value for the current level action
|
StructureObject |
getCurrentObject()
Return Main MBO which associated with current noun
|
int |
getCurrentPosition()
gets current position
|
org.jdom.Document |
getData()
Return data in jdom Document format
|
byte[] |
getDataAsBytes()
Return the whole document as bytes.
|
java.util.List |
getHierarchyObjectList()
Get list of hierarchy objects in mos in the Structure data
|
java.lang.String |
getLanguage()
Get base language of the Maximo.
|
java.lang.String |
getMessageID()
Get Message ID of the Structure Data
|
byte[] |
getOriginalByteData()
Return the whole document as bytes.
|
org.jdom.Element |
getPrimaryObject()
Get primary object in the current level
|
java.lang.Object |
getPrimaryObjectAsObject()
Get primary object in the current level
|
java.util.List |
getPrimaryObjectList()
Get list of primary objects in mos in the Structure data
|
java.lang.String |
getPrimaryObjectName()
Get main object name in the Structure data (it can be alias)
|
java.lang.String |
getRootName()
gets root element name
|
int |
getSize()
Get the object structure size
|
StructureObject |
getStructureObject(int pos)
Get object structure in the current level
|
StructureObject |
getStructureObject(java.lang.String xPathExpression)
Get StructureObject using XPath expression
|
java.util.List |
getStructureObjectList(java.lang.String xPathExpression)
Get List of objects using XPath expression
|
java.lang.String |
getTransLanguage()
Get language of the transaction.
|
java.lang.String |
getXPathData(java.lang.String xPathExpression)
Get Data using XPath expression
|
boolean |
hasDocument()
Determines if the StructureData instance has the data converted to a Document or is still in bytes format.
|
boolean |
isActionNull()
Determine whether Action of primary object of Structure Data is null
|
boolean |
isBroken()
Determine is data broken or not.
|
boolean |
isMultiObjectStructure()
checks whether XML has multiple object structures
|
void |
moveToFirstObjectStruture()
Reset Structure Data to point to first object structure.
|
boolean |
moveToNextObjectStructure()
moves to the next object structure .
|
boolean |
moveToPrevObjectStructure()
moves to the previous object structure.
|
void |
removeChildrenFromPrimaryObject()
Remove all children of the Primary Object Element
|
void |
removeCurrentData()
Remove the CurrentData Element and set the parent as the current data
|
void |
removeCurrentObjectStructure()
Removed the current object structure from the Structure & re-positions
cursor to previous one.
|
void |
setAction(java.lang.String action)
Set object Element action
|
void |
setActionNull()
Set object Element action to null
|
StructureObject |
setAsCurrent()
Sets current data
|
StructureObject |
setAsCurrent(org.jdom.Element data)
Set Element as the current level
|
void |
setAsCurrent(java.util.List data,
int i)
Set Element of the list as the current level
|
StructureObject |
setAsCurrent(java.lang.Object data)
Set Element as the current level
|
StructureObject |
setAsCurrent(java.lang.String xPathExpression)
Sets current data
|
void |
setChildrenData(java.util.List<org.jdom.Element> l)
Set child level data
|
void |
setCurrentPosition(int pos)
Sets current position
|
void |
setMessageID(java.lang.String id)
Set message id
|
StructureObject |
setMicData(org.jdom.Element data)
Set Element in the current element
|
boolean |
setParentAsCurrent()
Set parent Element as current data.
|
void |
setPrimaryObject(org.jdom.Element h)
Set Primary Object Element object
|
void |
setPrimaryObject(java.lang.String name)
Set the primary object
|
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
|
createChildrenData, getAttr, getAttr, getChildrenData, getChildrenData, getCurrentData, getCurrentData, getCurrentDataAsBinaryText, getCurrentDataAsBoolean, getCurrentDataAsBytes, getCurrentDataAsDate, getCurrentDataAsDouble, getCurrentDataAsElement, getCurrentDataAsInt, getCurrentDataAsList, getCurrentDataAsLong, getCurrentDataAsString, getCurrentNamespacePrefix, getCurrentNamespaceURI, getGL, getGL, getGLComponent, getName, getNamespaces, getObjectPath, getOverrideType, getParentData, getParentData, getRowStamp, getUserInfo, hasChildren, hasDetailData, isCurrentActionNull, isCurrentDataChanged, isCurrentDataNull, isGLDataNull, isGLDataNull, isInCurrentData, removeChildData, removeChildren, removeFromCurrentData, setCurrentAction, setCurrentData, setCurrentData, setCurrentData, setCurrentData, setCurrentData, setCurrentData, setCurrentDataNull, setCurrentNamespace, setGL, setGL, setNamespaces, setXPathData
addIntObject, breakIntObject, clear, getCurrentMbo, getDataAsString, getDbBuild, getIntObjectList, getJsonRequest, getMajorVersion, getMboArray, getMboFromMemory, getMinorVersion, getRealMbo, isIR, isMultiIntObject, isPatch, moveToFirstIntObject, moveToNextIntObject, moveToPrevIntObject, removeChildren, removeCurrentIntObject, setCurrentMbo, setIsPatch, setJsonRequest, setMboArray, setRealMbo
getChildrenKeys, getLocalRef, isContentLocalized, isCurrentDataObject, isEditMode, isHidden, isSaveEditMode, isSetValueMode, setEditMode, setGL, setSaveEditMode, setSetValueMode
public OslcRDFStructureData(com.hp.hpl.jena.rdf.model.Resource data, java.lang.String mosName, java.lang.String path, UserInfo userInfo, java.lang.String messageType) throws MXException
data
- byte array for the MOS XMLMXException
public boolean isBroken()
isBroken
in class StructureData
public void addObjectStructure() throws MXException
addObjectStructure
in class StructureData
MXException
public boolean moveToNextObjectStructure() throws MXException
moveToNextObjectStructure
in class StructureData
MXException
public boolean moveToPrevObjectStructure() throws MXException
moveToPrevObjectStructure
in class StructureData
MXException
public void moveToFirstObjectStruture() throws MXException
moveToFirstObjectStruture
in class StructureData
MXException
public void removeCurrentObjectStructure() throws MXException
removeCurrentObjectStructure
in class StructureData
MXException
public void removeChildrenFromPrimaryObject() throws java.rmi.RemoteException, MXException
removeChildrenFromPrimaryObject
in class StructureData
MXException
java.rmi.RemoteException
public org.jdom.Document getData()
getData
in class StructureData
public boolean hasDocument()
hasDocument
in class StructureData
public byte[] getDataAsBytes()
getDataAsBytes
in class StructureData
public byte[] getOriginalByteData()
getOriginalByteData
in class StructureData
public java.lang.Object clone()
clone
in class StructureData
public void breakData() throws MXException
breakData
in class StructureData
MXException
public void breakObjectStructure() throws MXException
breakObjectStructure
in class StructureData
MXException
public StructureObject setMicData(org.jdom.Element data)
setMicData
in class StructureData
data
- Give reference Element to set to current level.public void createChildrenData(java.lang.String name, boolean setAsCurrent)
createChildrenData
in class StructureData
name
- Name of the child level. This will move the current data
pointer to the child level.setAsCurrent
- boolean to identify setting child as current level or notpublic boolean setParentAsCurrent()
setParentAsCurrent
in class StructureData
public java.util.List getPrimaryObjectList()
getPrimaryObjectList
in class StructureData
public java.util.List getHierarchyObjectList()
getHierarchyObjectList
in class StructureData
public int getSize()
getSize
in class StructureData
public boolean isMultiObjectStructure()
isMultiObjectStructure
in class StructureData
public java.lang.String getPrimaryObjectName()
getPrimaryObjectName
in class StructureData
public java.lang.String getLanguage() throws MXException
getLanguage
in class StructureData
MXException
public java.lang.String getTransLanguage() throws MXException
getTransLanguage
in class StructureData
MXException
public org.jdom.Element getPrimaryObject()
getPrimaryObject
in class StructureData
public java.lang.Object getPrimaryObjectAsObject() throws MXException
getPrimaryObjectAsObject
in class StructureData
MXException
public StructureObject getStructureObject(int pos)
getStructureObject
in class StructureData
pos
- Position of the object structure in the list.public java.lang.String getAction()
getAction
in class StructureData
public boolean isActionNull()
isActionNull
in class StructureData
public java.lang.String getMessageID()
getMessageID
in class StructureData
public void removeCurrentData()
removeCurrentData
in class StructureData
public void setPrimaryObject(org.jdom.Element h)
setPrimaryObject
in class StructureData
h
- Give reference Element to set to primary object.public void setPrimaryObject(java.lang.String name)
setPrimaryObject
in class StructureData
name
- name of the primary objectpublic void setCurrentPosition(int pos)
setCurrentPosition
in class StructureData
pos
- Position of the object strucure in the list.public int getCurrentPosition()
getCurrentPosition
in class StructureData
public java.lang.String getRootName()
getRootName
in class StructureData
public void setAction(java.lang.String action)
setAction
in class StructureData
action
- action value to be set.public void setActionNull()
setActionNull
in class StructureData
public void setChildrenData(java.util.List<org.jdom.Element> l)
setChildrenData
in class StructureData
l
- Give reference to List of Element to set as child.public StructureObject setAsCurrent(org.jdom.Element data)
setAsCurrent
in class StructureData
data
- Give reference to Element to set as current.public StructureObject setAsCurrent(java.lang.Object data)
setAsCurrent
in class StructureData
data
- Give reference to Element to set as current.public void setAsCurrent(java.util.List data, int i)
setAsCurrent
in class StructureData
i
- the index.public StructureObject setAsCurrent()
setAsCurrent
in class StructureData
public StructureObject setAsCurrent(java.lang.String xPathExpression) throws MXException
setAsCurrent
in class StructureData
xPathExpression
- Give XPath expression.MXException
public StructureObject getStructureObject(java.lang.String xPathExpression) throws MXException
getStructureObject
in class StructureData
xPathExpression
- Give XPath expression.MXException
public java.lang.String getXPathData(java.lang.String xPathExpression) throws MXException
getXPathData
in class StructureData
MXException
public java.util.List getStructureObjectList(java.lang.String xPathExpression) throws MXException
getStructureObjectList
in class StructureData
MXException
public void setMessageID(java.lang.String id)
setMessageID
in class StructureData
public java.lang.String getBuild()
getBuild
in class StructureData
public StructureObject getCurrentObject()
getCurrentObject
in class OslcRDFStructureObject
public java.lang.String getCurrentAction()
getCurrentAction
in class OslcRDFStructureObject
public java.lang.String toString()
toString
in class OslcRDFStructureObject