E - Type parameter.public class CIMProperty<E> extends CIMValuedElement<E>
| Constructor and Description |
|---|
CIMProperty(java.lang.String pName,
CIMDataType pType,
E pValue)
Constructs a
CIMProperty to be used in instances. |
CIMProperty(java.lang.String pName,
CIMDataType pType,
E pValue,
boolean pKey,
boolean pPropagated,
java.lang.String pOriginClass)
Constructs a
CIMProperty to be used in instances. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object pObj)
Compares this object against the specified object.
|
java.lang.String |
getOriginClass()
Returns the class in which this property was defined or overridden.
|
int |
hashCode()
Returns a hash code value for the CIM property.
|
boolean |
isKey()
Convenience method for determining if this property is a Key.
|
boolean |
isPropagated()
Determines if this property is Propagated.
|
java.lang.String |
toString()
Returns a
String representation of the
CIMProperty This method is intended to be used only for
debugging purposes, and the format of the returned string may vary
between implementations. |
getValuegetDataTypecompareTo, getNamepublic CIMProperty(java.lang.String pName,
CIMDataType pType,
E pValue)
CIMProperty to be used in instances. For a
CIMClass, CIMClassProperty shall be used. This
can only be used for non-Key properties, non-propagated properties and
when the the origin class is not needed.pName - The name of the property.pType - The CIMDataType of the property.pValue - The value of the property.public CIMProperty(java.lang.String pName,
CIMDataType pType,
E pValue,
boolean pKey,
boolean pPropagated,
java.lang.String pOriginClass)
CIMProperty to be used in instances. For a
CIMClass, CIMClassProperty shall be used.pName - The name of the property.pType - The CIMDataType of the property.pValue - The value of the property.pKey - true if the property is a key; otherwise
false.pPropagated - true if the value was propagated from the class.pOriginClass - The class in which this property was defined or overridden.public boolean equals(java.lang.Object pObj)
true if and only if the argument is not null
and is a CIMProperty that represents the same name, type and
value as this object.equals in class CIMValuedElement<E>pObj - The object to compare with.true if the objects are the same; false
otherwise.public java.lang.String getOriginClass()
public int hashCode()
java.util.Hashtable.hashCode in class CIMValuedElement<E>public boolean isKey()
true if this property is a key.public boolean isPropagated()
true if this property is propagated.public java.lang.String toString()
String representation of the
CIMProperty 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.toString in class CIMValuedElement<E>Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.