public class MetaPropertyCollection
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
MetaPropertyCollection() |
MetaPropertyCollection(MetaPropertyCollection copy) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(MetaProperty property) |
boolean |
contains(java.lang.String name) |
static MetaPropertyCollection |
emptyCollection() |
MetaProperty |
get(MetaProperty property) |
MetaProperty |
get(java.lang.String name) |
TypedMetaProperty<?> |
getOrDefault(WellKnownMetaProperty<?> property) |
java.util.Map<java.lang.String,MetaProperty> |
getProperties()
Used for serialization, normally shouldn't be used directly.
|
boolean |
isSet(WellKnownMetaProperty<?> property)
Tests to verify that the collection has the property defined, and also that the property's value is not NULL and
not the default value.
|
void |
set(MetaProperty property)
Adds the given property to the collection, or replaces the existing value.
|
<T> void |
set(WellKnownMetaProperty<T> property,
T value)
Adds a property to the collection for the given WellKnownProperty, or replaces the existing value.
|
void |
setAll(MetaPropertyCollection source)
Merges all the properties from the source to this meta prop collection.
|
protected void |
setAll(MetaPropertyCollection source,
boolean cloneProps) |
void |
setProperties(java.util.Map<java.lang.String,MetaProperty> propertyMap)
Used for serialization, normally shouldn't be used directly.
|
int |
size() |
void |
unsetProperty(java.lang.String name) |
public MetaPropertyCollection()
public MetaPropertyCollection(MetaPropertyCollection copy)
public static MetaPropertyCollection emptyCollection()
public int size()
public java.util.Map<java.lang.String,MetaProperty> getProperties()
public void setProperties(java.util.Map<java.lang.String,MetaProperty> propertyMap)
public boolean contains(java.lang.String name)
public boolean contains(MetaProperty property)
public void unsetProperty(java.lang.String name)
public boolean isSet(WellKnownMetaProperty<?> property)
public TypedMetaProperty<?> getOrDefault(WellKnownMetaProperty<?> property)
public MetaProperty get(MetaProperty property)
public MetaProperty get(java.lang.String name)
public void set(MetaProperty property)
public <T> void set(WellKnownMetaProperty<T> property, T value)
public void setAll(MetaPropertyCollection source)
protected void setAll(MetaPropertyCollection source, boolean cloneProps)