public interface PropertyContainer extends PropertyTarget
| 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.
|
void |
setAll(PropertyContainer source)
Copy all compatible properties from one container to another;
|
<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
|
boolean |
supports(PropertyTag<?> tag)
Is the specified property supported by the container.
|
boolean |
writable(PropertyTag<?> tag)
Is the specified property supported for write.
|
getPropertyboolean supports(PropertyTag<?> tag)
tag - boolean writable(PropertyTag<?> tag)
tag - <T> T getProperty(PropertyTag<T> key) throws InvalidPropertyException
InvalidPropertyExceptionT - type of propertykey - PropertyTag identifying property<T> void setProperty(PropertyTag<? super T> key, T value) throws InvalidPropertyException
InvalidPropertyExceptionT - type of propertykey - PropertyTag identifying propertyvalue - <T> void setOptionalProperty(PropertyTag<? super T> key, T value)
T - type of propertykey - PropertyTag identifying propertyvalue - java.util.Set<PropertyTag> getDefinedProperties()
void setAll(PropertyContainer source)
source - PropertyContainer