Class CIMElement

java.lang.Object
org.sblim.wbem.cim.CIMElement
All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
CIMQualifiableElement, CIMQualifier, CIMQualifierType

public class CIMElement extends Object implements Serializable, Comparable
See Also:
  • Field Details

    • OPENING_BRAKET

      protected static final String[] OPENING_BRAKET
    • CLOSING_BRAKET

      protected static final String[] CLOSING_BRAKET
    • EMPTY

      protected static final String EMPTY
      See Also:
    • iName

      protected String iName
  • Constructor Details

    • CIMElement

      public CIMElement()
      Default ctor.
    • CIMElement

      public CIMElement(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 Details

    • getName

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

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

      public boolean equals(Object obj)
      Overrides:
      equals in class 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 .
    • assign

      public CIMElement assign(CIMElement pNewElement)
    • vectorToMOFString

      protected static String vectorToMOFString(Vector pVector, boolean pLineFeed, int pSpacesPerTab)
    • vectorToMOFString

      protected static String vectorToMOFString(Vector pVector)
    • appendTab

      protected static void appendTab(StringBuffer pBuffer, int pSpacesPerTab)
    • vectorToMOFString

      protected static String vectorToMOFString(Vector pVector, boolean pLineFeed, int pSpacesPerTab, int pBraketType, boolean pUseCommas)
    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable