|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.object.PropertiedObjectEditorImpl
public class PropertiedObjectEditorImpl
| Field Summary |
|---|
| Fields inherited from interface com.metamatrix.common.object.PropertiedObjectEditor |
|---|
NO_VALUE |
| Fields inherited from interface com.metamatrix.common.object.PropertyAccessPolicy |
|---|
DEFAULT_READ_ONLY_PRIVILEGE |
| Constructor Summary | |
|---|---|
PropertiedObjectEditorImpl()
Create an empty property definition object with all defaults. |
|
PropertiedObjectEditorImpl(PropertyAccessPolicy policy)
|
|
| Method Summary | |
|---|---|
protected PropertiedObjectImpl |
assertPropertiedObject(PropertiedObject obj)
|
java.util.List |
getAllowedValues(PropertiedObject obj,
PropertyDefinition def)
Get the allowed values for the property on the specified object. |
PropertyAccessPolicy |
getPolicy()
|
java.util.List |
getPropertyDefinitions(PropertiedObject obj)
Obtain the list of PropertyDefinitions that apply to the specified object's type. |
java.lang.Object |
getValue(PropertiedObject obj,
PropertyDefinition def)
Obtain from the specified PropertiedObject the property value that corresponds to the specified PropertyDefinition. |
boolean |
isReadOnly(PropertiedObject obj)
Return whether this editor may be used to set property values on the specified PropertiedObject. |
boolean |
isReadOnly(PropertiedObject obj,
PropertyDefinition def)
|
boolean |
isValidValue(PropertiedObject obj,
PropertyDefinition def,
java.lang.Object value)
Return whether the specified value is considered valid. |
void |
reset(PropertiedObject obj)
|
void |
setPolicy(PropertyAccessPolicy policy)
|
void |
setReadOnly(PropertiedObject obj,
boolean readOnly)
|
void |
setReadOnly(PropertiedObject obj,
PropertyDefinition def,
boolean readOnly)
|
void |
setValue(PropertiedObject obj,
PropertyDefinition def,
java.lang.Object value)
Set on the specified PropertiedObject the value defined by the specified PropertyDefinition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiedObjectEditorImpl(PropertyAccessPolicy policy)
public PropertiedObjectEditorImpl()
| Method Detail |
|---|
protected PropertiedObjectImpl assertPropertiedObject(PropertiedObject obj)
public java.util.List getPropertyDefinitions(PropertiedObject obj)
getPropertyDefinitions in interface PropertiedObjectEditorobj - the propertied object for which the PropertyDefinitions are
to be obtained; may not be null
java.lang.AssertionError - if obj is null
public java.util.List getAllowedValues(PropertiedObject obj,
PropertyDefinition def)
getAllowedValues in interface PropertiedObjectEditorobj - the propertied object whose property value is to be obtained;
may not be nulldef - the reference to the PropertyDefinition describing the
property whose value is to be returned; may not be null
#hasAllowedValues
public java.lang.Object getValue(PropertiedObject obj,
PropertyDefinition def)
getValue in interface PropertiedObjectEditorobj - the propertied object whose property value is to be obtained;
may not be nulldef - the reference to the PropertyDefinition describing the
property whose value is to be returned; may not be null
java.lang.AssertionError - if either of obj or def is null
public boolean isValidValue(PropertiedObject obj,
PropertyDefinition def,
java.lang.Object value)
isValidValue in interface PropertiedObjectEditorobj - the propertied object whose property value is to be validated;
may not be nulldef - the reference to the PropertyDefinition describing the
property whose value is to be validated; may not be nullvalue - the proposed value for the property, which must be an object array if
the property is multi-valued, and which may be null if the multiplicity
includes "0"
java.lang.AssertionError - if either of obj or def is null,
or if the property is multi-valued and the value is not an instance
of Object[].
public void setValue(PropertiedObject obj,
PropertyDefinition def,
java.lang.Object value)
setValue in interface PropertiedObjectEditorobj - the propertied object whose property value is to be set;
may not be nulldef - the reference to the PropertyDefinition describing the
property whose value is to be changed; may not be nullvalue - the proposed value for the property, which must be an object array if
the property is multi-valued, and which may be null if the multiplicity
includes "0"
java.lang.IllegalArgumentException - if the value does not correspond
to the PropertyDefinition requirements.
java.lang.AssertionError - if either of obj or def is null,
or if the property is multi-valued and the value is not an instance
of Object[].public PropertyAccessPolicy getPolicy()
getPolicy in interface PropertiedObjectEditorpublic void setPolicy(PropertyAccessPolicy policy)
setPolicy in interface PropertiedObjectEditorpublic boolean isReadOnly(PropertiedObject obj)
PropertiedObjectEditor
isReadOnly in interface PropertiedObjectEditorisReadOnly in interface PropertyAccessPolicyobj - the propertied object; may not be null
public boolean isReadOnly(PropertiedObject obj,
PropertyDefinition def)
isReadOnly in interface PropertyAccessPolicy
public void setReadOnly(PropertiedObject obj,
PropertyDefinition def,
boolean readOnly)
setReadOnly in interface PropertyAccessPolicy
public void setReadOnly(PropertiedObject obj,
boolean readOnly)
setReadOnly in interface PropertyAccessPolicypublic void reset(PropertiedObject obj)
reset in interface PropertyAccessPolicy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||