Interface ICustomProperty

All Known Implementing Classes:
CustomProperty

public interface ICustomProperty
Represents a custom property on a map element.
  • Method Details

    • setValue

      void setValue(URL value)
    • setValue

      void setValue(String value)
    • setValue

      void setValue(char value)
    • setValue

      void setValue(Enum<?> value)
    • setValue

      void setValue(long value)
    • setValue

      void setValue(double value)
    • setValue

      void setValue(boolean value)
    • setValue

      void setValue(Color value)
    • getAsString

      String getAsString()
    • getAsChar

      char getAsChar()
    • getAsBool

      boolean getAsBool()
    • getAsColor

      Color getAsColor()
    • getAsFloat

      float getAsFloat()
    • getAsDouble

      double getAsDouble()
    • getAsByte

      byte getAsByte()
    • getAsShort

      short getAsShort()
    • getAsInt

      int getAsInt()
    • getAsLong

      long getAsLong()
    • getAsEnum

      <T extends Enum<T>> T getAsEnum(Class<T> enumType)
    • getAsFile

      URL getAsFile()
    • getMapObjectId

      int getMapObjectId()
    • getType

      String getType()
    • setType

      void setType(String type)
    • equals

      boolean equals(Object anObject)
      Tests for equality between two custom properties. Two custom properties are equal if they both have the same type and string value.
      Overrides:
      equals in class Object
      Parameters:
      anObject - The custom property to test equality for
      Returns:
      Whether the two custom properties are equal, or false if anObject is not a custom property
    • hashCode

      int hashCode()
      Returns the hash code for this custom property. The hash code for a custom property is equal to its type's hash code times 31 plus its value's hash code.
      Overrides:
      hashCode in class Object
      Returns:
      The hash code for this custom property