Class CIMElement

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String[] CLOSING_BRAKET  
      protected static java.lang.String EMPTY  
      protected java.lang.String iName  
      protected static java.lang.String[] OPENING_BRAKET  
    • Constructor Summary

      Constructors 
      Constructor Description
      CIMElement()
      Default ctor.
      CIMElement​(java.lang.String pName)
      Constructs a CIMElement with a given name
      CIMElement​(CIMElement pCimElement)
      Constructs a CIMElement with the name from a given CIMElement
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void appendTab​(java.lang.StringBuffer pBuffer, int pSpacesPerTab)  
      CIMElement assign​(CIMElement pNewElement)  
      int compareTo​(java.lang.Object o)  
      boolean equals​(java.lang.Object obj)  
      java.lang.String getName()
      Gets the name for this CIMElement.
      boolean lessThan​(CIMElement pElement)
      Compares this object with the specified CIMElement.
      void setName​(java.lang.String pName)
      Specifies the name for this CIMElement.
      protected static java.lang.String vectorToMOFString​(java.util.Vector pVector)  
      protected static java.lang.String vectorToMOFString​(java.util.Vector pVector, boolean pLineFeed, int pSpacesPerTab)  
      protected static java.lang.String vectorToMOFString​(java.util.Vector pVector, boolean pLineFeed, int pSpacesPerTab, int pBraketType, boolean pUseCommas)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • OPENING_BRAKET

        protected static final java.lang.String[] OPENING_BRAKET
      • CLOSING_BRAKET

        protected static final java.lang.String[] CLOSING_BRAKET
      • iName

        protected java.lang.String iName
    • Constructor Detail

      • CIMElement

        public CIMElement()
        Default ctor.
      • CIMElement

        public CIMElement​(java.lang.String pName)
        Constructs a CIMElement with a given name
        Parameters:
        pName - The name
      • CIMElement

        public CIMElement​(CIMElement pCimElement)
        Constructs a CIMElement with the name from a given CIMElement
        Parameters:
        pCimElement - The CIMElement
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the name for this CIMElement.
        Returns:
        The name
      • setName

        public void setName​(java.lang.String pName)
        Specifies the name for this CIMElement.
        Parameters:
        pName - The name
        Throws:
        java.lang.IllegalArgumentException - if the specified name is null.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • lessThan

        public boolean lessThan​(CIMElement pElement)
        Compares this object with the specified CIMElement.
        Parameters:
        pElement - The element to compare with
        Returns:
        true if string comparison of this object's name is less the specified CIMElement's name .
      • vectorToMOFString

        protected static java.lang.String vectorToMOFString​(java.util.Vector pVector,
                                                            boolean pLineFeed,
                                                            int pSpacesPerTab)
      • vectorToMOFString

        protected static java.lang.String vectorToMOFString​(java.util.Vector pVector)
      • appendTab

        protected static void appendTab​(java.lang.StringBuffer pBuffer,
                                        int pSpacesPerTab)
      • vectorToMOFString

        protected static java.lang.String vectorToMOFString​(java.util.Vector pVector,
                                                            boolean pLineFeed,
                                                            int pSpacesPerTab,
                                                            int pBraketType,
                                                            boolean pUseCommas)
      • compareTo

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable