org.joda.property
Interface ModelElement
- All Superinterfaces:
- java.io.Serializable
- All Known Subinterfaces:
- Bean, Bean.Internal, BooleanicProperty, BooleanPrimitiveProperty, BooleanProperty, ClassProperty, CollectionProperty, DataListProperty, DataMapProperty, DataProperty, DateProperty, DateTimeProperty, DecimalProperty, DoublePrimitiveProperty, DoubleProperty, InstantProperty, IntegerPrimitiveProperty, IntegerProperty, LinkingProperty, LinkListProperty, LinkMapProperty, LinkProperty, ListProperty, LocaleProperty, LongPrimitiveProperty, LongProperty, MapProperty, NumericProperty, ObjectProperty, Property, Property.Internal, StringProperty, TimeProperty
- All Known Implementing Classes:
- AbstractBean, AbstractBooleanicProperty, AbstractListProperty, AbstractMapProperty, AbstractModelElement, AbstractNumericProperty, AbstractProperty, AbstractProxyBean, DefaultBooleanPrimitiveProperty, DefaultBooleanProperty, DefaultClassProperty, DefaultDataListProperty, DefaultDataMapProperty, DefaultDateProperty, DefaultDateTimeProperty, DefaultDecimalProperty, DefaultDoublePrimitiveProperty, DefaultDoubleProperty, DefaultIntegerPrimitiveProperty, DefaultIntegerProperty, DefaultLinkListProperty, DefaultLinkMapProperty, DefaultLinkProperty, DefaultLocaleProperty, DefaultLongPrimitiveProperty, DefaultLongProperty, DefaultObjectProperty, DefaultStringProperty, DefaultTimeProperty
- public interface ModelElement
- extends java.io.Serializable
ModelElement defines the abstract concept of part of the Joda
bean/property model structure.
- Author:
- Stephen Colebourne
Method Summary |
java.lang.String |
getAttribute(java.lang.String key)
Get an attribute by key. |
int |
getAttributeCount()
Get the count of attributes. |
java.util.Map |
getAttributeMap()
Get the Map of string to string attributes. |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Set an attribute key and value. |
getAttributeMap
public java.util.Map getAttributeMap()
- Get the Map of string to string attributes.
- Returns:
- string/string attribute Map
getAttributeCount
public int getAttributeCount()
- Get the count of attributes.
This should be checked rather than getAttributes().size() to
allow for lazily instantiated attribute maps.
- Returns:
- the number of attributes
getAttribute
public java.lang.String getAttribute(java.lang.String key)
- Get an attribute by key.
- Parameters:
key
- the key to get
- Returns:
- attribute value by key, null if not found
setAttribute
public void setAttribute(java.lang.String key,
java.lang.String value)
- Set an attribute key and value.
- Parameters:
key
- the key to setvalue
- the value to set
Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.