Package javax.cim

Class CIMTypedElement

    • Constructor Summary

      Constructors 
      Constructor Description
      CIMTypedElement​(java.lang.String pName, CIMDataType pType)
      Constructs a CIMTypedElement with the given name and data type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object pObj)
      Compares this object against the specified object.
      CIMDataType getDataType()
      Returns the CIMDataType for this CIM Element.
      int hashCode()
      Returns a hash code value for the CIM typed element.
      java.lang.String toString()
      Returns a String representation of the CIM Element.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CIMTypedElement

        public CIMTypedElement​(java.lang.String pName,
                               CIMDataType pType)
        Constructs a CIMTypedElement with the given name and data type.
        Parameters:
        pName - Name of the element.
        pType - Data type of the element.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object pObj)
        Compares this object against the specified object. The result is true if and only if the argument is not null and is a CIMTypedElement that represents the same name and type as this object.
        Overrides:
        equals in class CIMElement
        Parameters:
        pObj - The object to compare with.
        Returns:
        true if the objects are the same; false otherwise.
      • getDataType

        public CIMDataType getDataType()
        Returns the CIMDataType for this CIM Element.
        Returns:
        CIMDataType of this CIM element.
      • hashCode

        public int hashCode()
        Returns a hash code value for the CIM typed element. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.
        Overrides:
        hashCode in class CIMElement
        Returns:
        A hash code value for this CIM typed element.
      • toString

        public java.lang.String toString()
        Returns a String representation of the CIM Element. This method is intended to be used only for debugging purposes, and the format of the returned string may vary between implementations. The returned string may be empty but may not be null.
        Overrides:
        toString in class CIMElement
        Returns:
        String representation of this element.