|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.schema.processor.Definition
com.evolveum.midpoint.schema.processor.PropertyDefinition
public class PropertyDefinition
Property Definition.
Property is a basic unit of information in midPoint. This class provides
definition of property type, multiplicity and so on.
Property is a specific characteristic of an object. It may be considered
object "attribute" or "field". For example User has fullName property that
contains string value of user's full name.
Properties may be single-valued or multi-valued
Properties may contain primitive types or complex types (defined by XSD
schema)
Property values are unordered, implementation may change the order of values
Duplicate values of properties should be silently removed by implementations,
but clients must be able tolerate presence of duplicate values.
Operations that modify the objects work with the granularity of properties.
They add/remove/replace the values of properties, but do not "see" inside the
property.
This class represents schema definition for property. See Definition
for more details.
Constructor Summary | |
---|---|
PropertyDefinition(javax.xml.namespace.QName name,
javax.xml.namespace.QName typeName)
|
Method Summary | |
---|---|
boolean |
canCreate()
|
boolean |
canRead()
TODO: |
boolean |
canUpdate()
TODO: |
java.lang.Object[] |
getAllowedValues()
Returns allowed values for this property. |
int |
getMaxOccurs()
Return the number of maximal value occurrences. |
int |
getMinOccurs()
Return the number of minimal value occurrences. |
javax.xml.namespace.QName |
getValueType()
Returns QName of the property value type. |
Property |
instantiate()
|
boolean |
isMandatory()
Returns true if property is mandatory. |
boolean |
isMultiValue()
Returns true if property is multi-valued. |
boolean |
isOptional()
Returns true if property is optional. |
boolean |
isSingleValue()
Returns true if property is single-valued. |
void |
setCreate(boolean create)
|
void |
setMaxOccurs(int maxOccurs)
|
void |
setMinOccurs(int minOccurs)
|
void |
setRead(boolean read)
|
void |
setUpdate(boolean update)
|
Methods inherited from class com.evolveum.midpoint.schema.processor.Definition |
---|
debugDump, getDefaultName, getDisplayName, getHelp, getName, getNameOrDefaultName, getTypeName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyDefinition(javax.xml.namespace.QName name, javax.xml.namespace.QName typeName)
Method Detail |
---|
public java.lang.Object[] getAllowedValues()
public boolean canRead()
public boolean canUpdate()
public javax.xml.namespace.QName getValueType()
public int getMinOccurs()
public void setMinOccurs(int minOccurs)
public int getMaxOccurs()
public void setMaxOccurs(int maxOccurs)
public boolean isSingleValue()
public boolean isMultiValue()
public boolean isMandatory()
public boolean isOptional()
public Property instantiate()
public void setRead(boolean read)
public void setUpdate(boolean update)
public void setCreate(boolean create)
public boolean canCreate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |