Package com.arbortext.epic
Interface PropertyMap
- All Known Implementing Classes:
PropertyMapImpl
public interface PropertyMap
The
PropertyMap interface provides the abstraction of a
collection of typed objects associated with string keys.
The items in the PropertyMap are accessible by a string
key. The keys attribute is provided to iterate over all
entries in the map.
A PropertyMap object can be created using the
Application.createPropertyMap factory method. Some AOM
methods return PropertyMap objects.
- Since:
- Epic 4.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortThe data value is a number.static final shortThe data value is aDOMString.static final shortThe data value is aStringListobject.static final shortNo data associated with the key. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) Tests whether the specified key is contained in thePropertyMap.shortgetDataType(String key) Returns the type of data associated with the specified key in thePropertyMap.getKeys()Returns aStringListof all keys in the collection, which may be used to iterate over thePropertyMap.booleanA boolean indicating whether the property map object has been modified in the current session.intReturns the integer value data associated with the specified key in thePropertyMap.Returns the string value data associated with the specified key in thePropertyMap.getStringList(String key) Returns theStringListassociated with the specified key in thePropertyMap.voidAssociates a numeric value with a particular key.voidAssociates aDOMStringwith a particular key.voidputStringList(String key, StringList value) Associates aStringListwith a particular key.voidDeletes an entry from thePropertyMap.voidsetModified(boolean modified) A boolean indicating whether the property map object has been modified in the current session.
-
Field Details
-
TYPE_UNKNOWN
static final short TYPE_UNKNOWNNo data associated with the key.- See Also:
-
TYPE_NUMBER
static final short TYPE_NUMBERThe data value is a number.- See Also:
-
TYPE_STRINGLIST
static final short TYPE_STRINGLISTThe data value is aStringListobject.- See Also:
-
TYPE_STRING
static final short TYPE_STRINGThe data value is aDOMString.- See Also:
-
-
Method Details
-
getKeys
StringList getKeys()Returns aStringListof all keys in the collection, which may be used to iterate over thePropertyMap. -
containsKey
Tests whether the specified key is contained in thePropertyMap.- Parameters:
key- The key to check.- Returns:
trueif thePropertyMapcontains a value for key.falseotherwise.
-
getDataType
Returns the type of data associated with the specified key in thePropertyMap.- Parameters:
key- The key to examine.- Returns:
- The type associated with the key. If
keyis not contained in thePropertyMap, returnsTYPE_UNKNOWN.
-
getNumber
Returns the integer value data associated with the specified key in thePropertyMap.- Parameters:
key- The key to examine.- Returns:
- The numeric value associated with the key. If
keyis not contained in thePropertyMapor the map entry is not a number, returns-1.
-
getString
Returns the string value data associated with the specified key in thePropertyMap.- Parameters:
key- The key to examine.- Returns:
- The
DOMStringvalue associated with the key. Ifkeyis not contained in thePropertyMapor the map entry is not a string, returnsnull.
-
getStringList
Returns theStringListassociated with the specified key in thePropertyMap.- Parameters:
key- The key to examine.- Returns:
- The
StringListvalue associated with the key. Ifkeyis not contained in thePropertyMapor the map entry is not aStringList, returnsnull.
-
putNumber
Associates a numeric value with a particular key.- Parameters:
key- Identifies the value to be replaced.value- The new value to be stored.
-
putString
Associates aDOMStringwith a particular key.- Parameters:
key- Identifies the value to be replaced.value- The new value to be stored. If the value isnull, the previous value, if any, is deleted from the map.
-
putStringList
Associates aStringListwith a particular key.- Parameters:
key- Identifies the value to be replaced.value- The new value to be stored. If the value isnull, the previous value, if any, is deleted from the map.
-
remove
Deletes an entry from thePropertyMap.- Parameters:
key- Identifies the item to remove. If the key is not contained in the map, does nothing.
-
getModified
boolean getModified()A boolean indicating whether the property map object has been modified in the current session.- Since:
- Epic 5.1
-
setModified
void setModified(boolean modified) A boolean indicating whether the property map object has been modified in the current session.- Since:
- Epic 5.1
-