public class PropertyMap extends java.lang.Object implements PropertyContainer
| Constructor and Description |
|---|
PropertyMap() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<PropertyTag> |
getDefinedProperties()
Generate a set of all the properties defined in this container
|
<T> T |
getProperty(PropertyTag<T> key)
Get the specified property from the container.
|
<T> T |
getProperty(PropertyTag<T> tag,
T def)
Get property with default.
|
java.util.Set<PropertyTag> |
propertySet() |
void |
setAll(PropertyContainer source)
Copy all compatible properties from one container to another;
|
int |
setContainer(PropertyContainer record)
Set all properties that can be written to a container
|
<T> void |
setOptionalProperty(PropertyTag<? super T> key,
T value)
Set the specified property if it is supported
|
<T> void |
setProperty(PropertyTag<? super T> key,
T value)
Set the specified property
|
int |
size() |
boolean |
supports(PropertyTag<?> tag)
Is the specified property supported by the container.
|
boolean |
writable(PropertyTag<?> tag)
Is the specified property supported for write.
|
public <T> T getProperty(PropertyTag<T> key)
PropertyContainergetProperty in interface PropertyContainerT - type of propertykey - PropertyTag identifying propertypublic final <T> void setProperty(PropertyTag<? super T> key, T value)
PropertyContainersetProperty in interface PropertyContainerT - type of propertykey - PropertyTag identifying propertypublic final <T> void setOptionalProperty(PropertyTag<? super T> key, T value)
PropertyContainersetOptionalProperty in interface PropertyContainerT - type of propertykey - PropertyTag identifying propertypublic int setContainer(PropertyContainer record)
record - public final <T> T getProperty(PropertyTag<T> tag, T def)
PropertyTargetgetProperty in interface PropertyTargetT - Type of propertytag - PropertTag identifying propertydef - default valuepublic final boolean supports(PropertyTag<?> tag)
PropertyContainersupports in interface PropertyContainerpublic boolean writable(PropertyTag<?> tag)
PropertyContainerwritable in interface PropertyContainerpublic java.util.Set<PropertyTag> propertySet()
public int size()
public java.util.Set<PropertyTag> getDefinedProperties()
PropertyContainergetDefinedProperties in interface PropertyContainerpublic void setAll(PropertyContainer source)
PropertyContainersetAll in interface PropertyContainersource - PropertyContainer