com.ibm.tivoli.maximo.fdmbo

Class JSONObjectInfo

  • java.lang.Object
    • com.ibm.tivoli.maximo.fdmbo.JSONObjectInfo


  • public class JSONObjectInfo
    extends java.lang.Object
    JSON Object Info.
    • Constructor Summary

      Constructors 
      Constructor and Description
      JSONObjectInfo(java.lang.String relationPropName, java.lang.String objectName, boolean multiple, boolean arrayUnit, boolean optimize)
      Constructor will be called on Resource generation
    • Constructor Detail

      • JSONObjectInfo

        public JSONObjectInfo(java.lang.String relationPropName,
                              java.lang.String objectName,
                              boolean multiple,
                              boolean arrayUnit,
                              boolean optimize)
        Constructor will be called on Resource generation
        Parameters:
        relationPropName - property name
        multiple - is multiple
        arrayUnit - is array list
        optimize - optimize resource
    • Method Detail

      • addID

        public void addID()
        Adds JSON object id.
      • isRootObject

        public boolean isRootObject()
        Is object a root object.
        Returns:
        root object indicator
      • isArrayUnit

        public boolean isArrayUnit()
        Is array unit.
        Returns:
        array unit indicator
      • isMultiple

        public boolean isMultiple()
        Is multiple.
        Returns:
        multiple indicator
      • isWrapper

        public boolean isWrapper()
        Is object a wrapper object (no attributes).
        Returns:
        wrapper object indicator
      • getRelationPropName

        public java.lang.String getRelationPropName()
        Returns relation property name.
        Returns:
        relation property name
      • getObjectName

        public java.lang.String getObjectName()
        Returns object name.
        Returns:
        object name
      • getHPath

        public java.lang.String getHPath()
        Returns relation property hPath.
        Returns:
        relation property hPath
      • getHierarchyPath

        public java.lang.String getHierarchyPath()
        Returns object hierarchy path.
        Returns:
        object hierarchy path
      • getParentObjectName

        public java.lang.String getParentObjectName()
        Returns parent object name.
        Returns:
        parent object name
      • addProperty

        public void addProperty(java.lang.String mappedName,
                                JSONPropertyInfo jsonProp)
        Adds new property info.
        Parameters:
        mappedName - resolved object name
        jsonProp - JSONPropertyInfo object
      • addRelatedChild

        public void addRelatedChild(java.lang.String relationName,
                                    JSONObjectInfo jsonObj)
        Adds child object info to hierarchy.
        Parameters:
        relationName - relationship
        jsonObj - child JSONObjectInfo object
      • getPropertyMap

        public java.util.Map getPropertyMap()
        Returns property map.
        Returns:
        property map
      • getAttrToPropMap

        public java.util.Map getAttrToPropMap()
        Returns attribute to property mapping.
        Returns:
        attribute to property map
      • getPropToAttrMap

        public java.util.Map getPropToAttrMap()
        Returns property to attribute mapping.
        Returns:
        property to attribute map
      • getChildrenMap

        public java.util.Map getChildrenMap()
        Returns children object map.
        Returns:
        children object map
      • getChildren

        public java.util.List getChildren()
        Returns a List of JSONObjectInfo objects which are children to the current JSONObjectInfo object
        Returns:
        List of child JSONObjectInfo objects
      • setMerged

        public void setMerged()
        Set merged object info
      • isMerged

        public boolean isMerged()
        Is object info merged
        Returns:
        is merged indicator
      • idAdded

        public void idAdded()
        Sets to true if id added
      • isIdAdded

        public boolean isIdAdded()
        Is id added to object info
        Returns:
        is id added indicator
      • setObjectName

        public void setObjectName(java.lang.String useObject)
        Set object name
        Parameters:
        useObject - object name