public class DynamicDOTItem extends Object implements DisplayObjectType.DisplayObjectTypeItem, Comparable<Object>
Modifier and Type | Field and Description |
---|---|
private String |
_aspect |
private String |
_attributeGroup |
private String |
_attributeName |
private String |
_description |
private boolean |
_isValid |
private Object |
_propertyValue |
private String |
_propertyValueClass |
private static String |
ASPECT |
private static String |
ATTRIBUTE_GROUP |
private static String |
ATTRIBUTE_NAME |
private static String |
COLOR_ALPHA |
private static String |
COLOR_BLUE |
private static String |
COLOR_GREEN |
private static String |
COLOR_RED |
private static String |
DESCRIPTION |
static DynamicDOTItem |
NO_DATA_ITEM |
static DynamicDOTItem |
NO_SOURCE_ITEM |
private static String |
PROPERTY_VALUE |
private static String |
PROPERTY_VALUE_CLASS |
Constructor and Description |
---|
DynamicDOTItem(Preferences prefs)
Initialisiert das Item aus dem übergebenen Knoten.
|
DynamicDOTItem(String attributeGroup,
String aspect,
String attributeName,
String description,
Object propertyValue)
Konstruiert ein DynamicDOTItem aus den übergebenen Informationen.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o)
Die Implementation vergleicht die 5 Bestandteile der Items mit equals() von String oder Object.
|
String |
getAspect()
Gibt den Aspekt zurück.
|
String |
getAttributeGroup()
Gibt die Attributgruppe zurück.
|
String |
getAttributeName()
Gibt den Namen des Attributs zurück.
|
DynamicDOTItem |
getCopy()
Estellt ein neues Item mit denselben Werten.
|
String |
getDescription()
Gibt die Beschreibung zurück.
|
Object |
getPropertyValue()
Gibt den Wert der Eigenschaft zurück.
|
int |
hashCode()
Addiert die Hashcodes von Attributgruppenname, Aspektname und Attributname.
|
boolean |
isValid()
Gibt
true zurück, wenn das Objekt gültig ist, und false sonst. |
void |
putPreferences(Preferences prefs)
Speichert das Item unter dem übergebenen Knoten ab.
|
String |
toString()
Eine einfache Selbstbeschreibung.
|
private final String _attributeGroup
private final String _aspect
private final String _attributeName
private final String _description
private final Object _propertyValue
private final String _propertyValueClass
private final boolean _isValid
private static final String ATTRIBUTE_GROUP
private static final String ASPECT
private static final String ATTRIBUTE_NAME
private static final String DESCRIPTION
private static final String PROPERTY_VALUE
private static final String PROPERTY_VALUE_CLASS
private static final String COLOR_RED
private static final String COLOR_BLUE
private static final String COLOR_GREEN
private static final String COLOR_ALPHA
public static final DynamicDOTItem NO_DATA_ITEM
public static final DynamicDOTItem NO_SOURCE_ITEM
public DynamicDOTItem(String attributeGroup, String aspect, String attributeName, String description, Object propertyValue)
propertyValue
vom Typ Integer, Double,
String oder Color ist. Ist er nicht von diesem Typ, so wird derzeit eine IllegalArgumentException
ausgelöst, da es sich höchstwahrscheinlich um eine unvollständige Erweiterung des Kodes
handelt: die vier Klassen sind gerade die Wertebereiche aller im Moment definierten
Eigenschaften
.attributeGroup
- die Attributgruppeaspect
- der AspektattributeName
- der Attributnamedescription
- die BeschreibungpropertyValue
- der Eigenschaftswertpublic DynamicDOTItem(Preferences prefs)
prefs
- der Knoten, unter dem die Initialisierung beginntpublic String getAttributeGroup()
getAttributeGroup
in interface DisplayObjectType.DisplayObjectTypeItem
public String getAspect()
getAspect
in interface DisplayObjectType.DisplayObjectTypeItem
public String getAttributeName()
getAttributeName
in interface DisplayObjectType.DisplayObjectTypeItem
public String getDescription()
getDescription
in interface DisplayObjectType.DisplayObjectTypeItem
public Object getPropertyValue()
getPropertyValue
in interface DisplayObjectType.DisplayObjectTypeItem
public boolean isValid()
true
zurück, wenn das Objekt gültig ist, und false
sonst.public boolean equals(Object o)
public int hashCode()
public String toString()
public int compareTo(Object o)
compareTo
in interface Comparable<Object>
public void putPreferences(Preferences prefs)
prefs
- der Knoten, unter dem die Speicherung beginntpublic DynamicDOTItem getCopy()
getCopy
in interface DisplayObjectType.DisplayObjectTypeItem