public class Extensible extends java.lang.Object implements IExtensible
| Constructor and Description |
|---|
Extensible() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyExtensions(Extensible e)
Copies the extensions from the given Extensible, marked as to copy, to
this extension list.
|
java.util.List<Pair<java.lang.String,java.lang.Object>> |
getCopyExtensions()
Calculates a list of pairs key-value which should be copied.
|
java.lang.Object |
getExtension(java.lang.String key)
Retrieves the saved value using the key as identifier.
|
java.util.List<Pair<java.lang.String,java.lang.Object>> |
getExtensions()
Calculates a list of pairs key-value of all extensions.
|
java.util.List<Pair<java.lang.String,java.lang.Object>> |
getExtensionsWithoutProperty(ExtensionProperty property)
Calculates a list of pairs key-value of all extensions without the given property.
|
java.util.List<Pair<java.lang.String,java.lang.Object>> |
getExtensionsWithProperty(ExtensionProperty property)
Calculates a list of pairs key-value of all extensions with the given property.
|
java.util.List<Pair<java.lang.String,java.lang.Object>> |
getWriteToFileExtensions()
Calculates a list of pairs key-value which should be written to a file.
|
boolean |
hasExtension(java.lang.String key)
Returns if this extension contains the given key.
|
void |
putExtension(java.lang.String key,
java.lang.Object value)
Saves the given value using the key as identifier with the flag to copy
this object by coping the owner object.
|
void |
putExtension(java.lang.String key,
java.lang.Object value,
ExtensionProperty... properties)
Saves the given value using the key as identifier.
|
void |
removeExtension(java.lang.String key)
Removes the value associated with the given key.
|
public boolean hasExtension(java.lang.String key)
key - - key to search forpublic void putExtension(java.lang.String key,
java.lang.Object value,
ExtensionProperty... properties)
IExtensibleputExtension in interface IExtensiblekey - An identifying key as string.value - Any value.properties - Properties that this extension should have.public void putExtension(java.lang.String key,
java.lang.Object value)
key - An identifying key as string.value - Any value.public void removeExtension(java.lang.String key)
removeExtension in interface IExtensiblekey - An identifying key as string.public java.lang.Object getExtension(java.lang.String key)
getExtension in interface IExtensiblekey - An identifying key as string.StructureException - thrown if the key is not found.public java.util.List<Pair<java.lang.String,java.lang.Object>> getExtensions()
public java.util.List<Pair<java.lang.String,java.lang.Object>> getExtensionsWithProperty(ExtensionProperty property)
property - The property to look forpublic java.util.List<Pair<java.lang.String,java.lang.Object>> getExtensionsWithoutProperty(ExtensionProperty property)
property - The property to look forpublic java.util.List<Pair<java.lang.String,java.lang.Object>> getWriteToFileExtensions()
public java.util.List<Pair<java.lang.String,java.lang.Object>> getCopyExtensions()
public final void copyExtensions(Extensible e)
e - The Extensible to copy from.