Interface ICustomProperty
- All Known Implementing Classes:
CustomProperty
public interface ICustomProperty
The
ICustomProperty interface defines methods for managing custom properties with various data types. It provides functionality to set and
retrieve property values in different formats, as well as methods for type and equality handling.-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests for equality between two custom properties.booleanRetrieves the value of the property as aboolean.byteRetrieves the value of the property as abyte.charRetrieves the value of the property as achar.Retrieves the value of the property as aColor.doubleRetrieves the value of the property as adouble.<T extends Enum<T>>
TRetrieves the value of the property as anEnum.Retrieves the value of the property as aURL.floatRetrieves the value of the property as afloat.intgetAsInt()Retrieves the value of the property as anint.longRetrieves the value of the property as along.shortRetrieves the value of the property as ashort.Retrieves the value of the property as aString.intRetrieves the map object ID associated with this property.getType()Retrieves the type of the property.inthashCode()Returns the hash code for this custom property.voidSets the type of the property.voidsetValue(boolean value) Sets the value of the property as aboolean.voidsetValue(char value) Sets the value of the property as achar.voidsetValue(double value) Sets the value of the property as adouble.voidsetValue(long value) Sets the value of the property as along.voidSets the value of the property as aColor.voidSets the value of the property as anEnum.voidSets the value of the property as aString.voidSets the value of the property as aURL.
-
Method Details
-
setValue
-
setValue
-
setValue
void setValue(char value) Sets the value of the property as achar.- Parameters:
value- thecharvalue to set
-
setValue
-
setValue
void setValue(long value) Sets the value of the property as along.- Parameters:
value- thelongvalue to set
-
setValue
void setValue(double value) Sets the value of the property as adouble.- Parameters:
value- thedoublevalue to set
-
setValue
void setValue(boolean value) Sets the value of the property as aboolean.- Parameters:
value- thebooleanvalue to set
-
setValue
-
getAsString
-
getAsChar
char getAsChar()Retrieves the value of the property as achar.- Returns:
- the property value as a
char
-
getAsBool
boolean getAsBool()Retrieves the value of the property as aboolean.- Returns:
- the property value as a
boolean
-
getAsColor
-
getAsFloat
float getAsFloat()Retrieves the value of the property as afloat.- Returns:
- the property value as a
float
-
getAsDouble
double getAsDouble()Retrieves the value of the property as adouble.- Returns:
- the property value as a
double
-
getAsByte
byte getAsByte()Retrieves the value of the property as abyte.- Returns:
- the property value as a
byte
-
getAsShort
short getAsShort()Retrieves the value of the property as ashort.- Returns:
- the property value as a
short
-
getAsInt
int getAsInt()Retrieves the value of the property as anint.- Returns:
- the property value as an
int
-
getAsLong
long getAsLong()Retrieves the value of the property as along.- Returns:
- the property value as a
long
-
getAsEnum
-
getAsFile
-
getMapObjectId
int getMapObjectId()Retrieves the map object ID associated with this property.- Returns:
- the map object ID
-
getType
-
setType
-
equals
Tests for equality between two custom properties. Two custom properties are equal if they both have the same type and string value. -
hashCode
-