|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPropertyContainer
Interface of Property
container.
Method Summary | |
---|---|
void |
addProperty(Property<? extends MetaProperty> property)
Adds property to this container. |
Collection<CustomProperty> |
getCustomProperties()
Returns all custom properties. |
MetaPropertyManager |
getMetaPropertyManager()
Returns MetaPropertyManager of this container's properties. |
Collection<PermanentProperty> |
getPermanentProperties()
Returns all permanent properties. |
Collection<Property<? extends MetaProperty>> |
getProperties()
Returns all properties. |
Property<? extends MetaProperty> |
getProperty(String name)
Returns property with given name. |
Collection<TransientProperty> |
getTransientProperties()
Returns all transient properties. |
boolean |
matches(IPropertyContainer other)
Checks if this property container matches the property container argument. |
Property<? extends MetaProperty> |
removeProperty(String name)
Removes property with given name. |
Property<? extends MetaProperty> |
setProperty(String name,
Object value)
Modifies property value. |
Methods inherited from interface java.util.Observer |
---|
update |
Methods inherited from interface pl.edu.agh.cast.common.IValidatable |
---|
isValid |
Method Detail |
---|
Collection<Property<? extends MetaProperty>> getProperties()
Collection<CustomProperty> getCustomProperties()
Collection<PermanentProperty> getPermanentProperties()
Collection<TransientProperty> getTransientProperties()
void addProperty(Property<? extends MetaProperty> property)
property
- property to add
IllegalArgumentException
- if property
is null
PropertyException
- if property with this name is already registered or if property
's MetaProperty
is not registered in the MetaPropertyManager
(getMetaPropertyManager()
)Property<? extends MetaProperty> getProperty(String name)
If a property was not yet created but a meta-property with given name is defined in meta-property manager then a new instance is added to the container and returned.
name
- name of the property
null
if property with given name is not defined
IllegalArgumentException
- if given property name is not correctly formatted (see MetaProperty
for details on property
name formatting)Property<? extends MetaProperty> setProperty(String name, Object value)
name
- name of the propertyvalue
- new value of the property
IllegalArgumentException
- if given property name is not correctly formatted (see MetaProperty
for details on property
name formatting)
PropertyException
- if property with given name is not registered or if this property cannot be modified (check
MetaProperty.isWritable()
) or if the value type is invalid for this propertyProperty<? extends MetaProperty> removeProperty(String name)
name
- name of the property
IllegalArgumentException
- if given property name is not correctly formatted (see MetaProperty
for details on property
name formatting)MetaPropertyManager getMetaPropertyManager()
MetaPropertyManager
of this container's properties.
boolean matches(IPropertyContainer other)
One container matches the second one if:
true
). This means that all matchable meta properties from one container must exist in the second one
and also have to be matchable.
other
- the reference property container with which to compare
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |