public class PropertyTuple extends java.lang.Object implements PropertyContainer
| Constructor and Description |
|---|
PropertyTuple(PropertyMap values) |
PropertyTuple(java.util.Set<PropertyTag> use,
PropertyContainer values) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
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.
|
int |
hashCode() |
java.util.Set<PropertyTag> |
propertySet() |
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
|
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 PropertyTuple(PropertyMap values) throws InvalidPropertyException
InvalidPropertyExceptionpublic PropertyTuple(java.util.Set<PropertyTag> use, PropertyContainer values) throws InvalidPropertyException
InvalidPropertyExceptionpublic int size()
public java.util.Set<PropertyTag> propertySet()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic <T> T getProperty(PropertyTag<T> key) throws InvalidPropertyException
PropertyContainergetProperty in interface PropertyContainerInvalidPropertyExceptionT - type of propertykey - PropertyTag identifying propertypublic <T> void setOptionalProperty(PropertyTag<? super T> key, T value)
PropertyContainersetOptionalProperty in interface PropertyContainerT - type of propertykey - PropertyTag identifying propertypublic <T> void setProperty(PropertyTag<? super T> key, T value) throws InvalidPropertyException
PropertyContainersetProperty in interface PropertyContainerInvalidPropertyExceptionT - type of propertykey - PropertyTag identifying propertypublic boolean supports(PropertyTag<?> tag)
PropertyContainersupports in interface PropertyContainerpublic <T> T getProperty(PropertyTag<T> tag, T def)
PropertyTargetgetProperty in interface PropertyTargetT - Type of propertytag - PropertTag identifying propertydef - default valuepublic boolean writable(PropertyTag<?> tag)
PropertyContainerwritable in interface PropertyContainerpublic java.util.Set<PropertyTag> getDefinedProperties()
PropertyContainergetDefinedProperties in interface PropertyContainerpublic void setAll(PropertyContainer source)
PropertyContainersetAll in interface PropertyContainersource - PropertyContainer