public class CustomProperty extends java.lang.Object implements ICustomProperty
Constructor and Description |
---|
CustomProperty() |
CustomProperty(ICustomProperty propertyToBeCopied)
Copy Constructor for copying instances of CustomProperties.
|
CustomProperty(java.lang.String value) |
CustomProperty(java.lang.String type,
java.lang.String value) |
CustomProperty(java.net.URL location) |
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) |
java.net.URL |
getAsFile() |
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) |
void |
setValue(java.net.URL location) |
java.lang.String |
toString() |
public CustomProperty()
public CustomProperty(ICustomProperty propertyToBeCopied)
propertyToBeCopied
- the Property we want to copypublic CustomProperty(java.lang.String value)
public CustomProperty(java.lang.String type, java.lang.String value)
public CustomProperty(java.net.URL location)
public void setValue(java.net.URL location)
setValue
in interface ICustomProperty
public void setValue(java.lang.String value)
setValue
in interface ICustomProperty
public void setValue(char value)
setValue
in interface ICustomProperty
public void setValue(java.lang.Enum<?> value)
setValue
in interface ICustomProperty
public void setValue(long value)
setValue
in interface ICustomProperty
public void setValue(double value)
setValue
in interface ICustomProperty
public void setValue(boolean value)
setValue
in interface ICustomProperty
public void setValue(java.awt.Color value)
setValue
in interface ICustomProperty
public java.lang.String getAsString()
getAsString
in interface ICustomProperty
public char getAsChar()
getAsChar
in interface ICustomProperty
public boolean getAsBool()
getAsBool
in interface ICustomProperty
public java.awt.Color getAsColor()
getAsColor
in interface ICustomProperty
public float getAsFloat()
getAsFloat
in interface ICustomProperty
public double getAsDouble()
getAsDouble
in interface ICustomProperty
public byte getAsByte()
getAsByte
in interface ICustomProperty
public short getAsShort()
getAsShort
in interface ICustomProperty
public int getAsInt()
getAsInt
in interface ICustomProperty
public long getAsLong()
getAsLong
in interface ICustomProperty
public <T extends java.lang.Enum<T>> T getAsEnum(java.lang.Class<T> enumType)
getAsEnum
in interface ICustomProperty
public java.net.URL getAsFile()
getAsFile
in interface ICustomProperty
public java.lang.String getType()
getType
in interface ICustomProperty
public void setType(java.lang.String type)
setType
in interface ICustomProperty
public boolean equals(java.lang.Object anObject)
ICustomProperty
equals
in interface ICustomProperty
equals
in class java.lang.Object
anObject
- The custom property to test equality foranObject
is not a custom propertypublic int hashCode()
ICustomProperty
hashCode
in interface ICustomProperty
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object