public class CustomProperty extends java.lang.Object implements ICustomProperty
| Constructor and Description |
|---|
CustomProperty() |
CustomProperty(java.lang.String value) |
CustomProperty(java.lang.String type,
java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object anObject)
Tests for equality between two custom properties.
|
boolean |
getAsBool() |
byte |
getAsByte() |
char |
getAsChar() |
java.awt.Color |
getAsColor() |
double |
getAsDouble() |
<T extends java.lang.Enum<T>> |
getAsEnum(java.lang.Class<T> enumType) |
float |
getAsFloat() |
int |
getAsInt() |
long |
getAsLong() |
short |
getAsShort() |
java.lang.String |
getAsString() |
java.lang.String |
getType() |
int |
hashCode()
Returns the hash code for this custom property.
|
void |
setType(java.lang.String type) |
void |
setValue(boolean value) |
void |
setValue(char value) |
void |
setValue(java.awt.Color value) |
void |
setValue(double value) |
void |
setValue(java.lang.Enum<?> value) |
void |
setValue(long value) |
void |
setValue(java.lang.String value) |
java.lang.String |
toString() |
public CustomProperty()
public CustomProperty(java.lang.String value)
public CustomProperty(java.lang.String type,
java.lang.String value)
public void setValue(java.lang.String value)
setValue in interface ICustomPropertypublic void setValue(char value)
setValue in interface ICustomPropertypublic void setValue(java.lang.Enum<?> value)
setValue in interface ICustomPropertypublic void setValue(long value)
setValue in interface ICustomPropertypublic void setValue(double value)
setValue in interface ICustomPropertypublic void setValue(boolean value)
setValue in interface ICustomPropertypublic void setValue(java.awt.Color value)
setValue in interface ICustomPropertypublic java.lang.String getAsString()
getAsString in interface ICustomPropertypublic char getAsChar()
getAsChar in interface ICustomPropertypublic boolean getAsBool()
getAsBool in interface ICustomPropertypublic java.awt.Color getAsColor()
getAsColor in interface ICustomPropertypublic float getAsFloat()
getAsFloat in interface ICustomPropertypublic double getAsDouble()
getAsDouble in interface ICustomPropertypublic byte getAsByte()
getAsByte in interface ICustomPropertypublic short getAsShort()
getAsShort in interface ICustomPropertypublic int getAsInt()
getAsInt in interface ICustomPropertypublic long getAsLong()
getAsLong in interface ICustomPropertypublic <T extends java.lang.Enum<T>> T getAsEnum(java.lang.Class<T> enumType)
getAsEnum in interface ICustomPropertypublic java.lang.String getType()
getType in interface ICustomPropertypublic void setType(java.lang.String type)
setType in interface ICustomPropertypublic boolean equals(java.lang.Object anObject)
ICustomPropertyequals in interface ICustomPropertyequals in class java.lang.ObjectanObject - The custom property to test equality foranObject is not a custom propertypublic int hashCode()
ICustomPropertyhashCode in interface ICustomPropertyhashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object