|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.schema.processor.Property
public class Property
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. Property is mutable.
Constructor Summary | |
---|---|
Property()
|
|
Property(javax.xml.namespace.QName name)
|
|
Property(javax.xml.namespace.QName name,
PropertyDefinition definition)
|
|
Property(javax.xml.namespace.QName name,
PropertyDefinition definition,
java.util.Set<java.lang.Object> values)
|
Method Summary | ||
---|---|---|
PropertyModification |
createModification(PropertyModification.ModificationType modificationType,
java.lang.Object modifyValue)
|
|
PropertyModification |
createModification(PropertyModification.ModificationType modificationType,
java.util.Set<java.lang.Object> modifyValues)
|
|
java.lang.String |
dump()
|
|
PropertyDefinition |
getDefinition()
Returns applicable property definition. |
|
java.lang.String |
getDisplayName()
Returns a display name for the property type. |
|
java.lang.String |
getHelp()
Returns help message defined for the property type. |
|
javax.xml.namespace.QName |
getName()
Returns the name of the property. |
|
java.lang.Object |
getValue()
|
|
|
getValue(java.lang.Class<T> T)
Returns value of a single-valued property. |
|
java.util.Set<java.lang.Object> |
getValues()
Returns property values. |
|
|
getValues(java.lang.Class<T> T)
Returns property values. |
|
java.util.List<org.w3c.dom.Element> |
serializeToDom(org.w3c.dom.Document doc)
Serializes property to DOM element(s). |
|
void |
setDefinition(PropertyDefinition definition)
Sets applicable property definition. |
|
void |
setName(javax.xml.namespace.QName name)
Sets the name of the property. |
|
void |
setValue(java.lang.Object value)
Means as a short-hand for setting just a value for single-valued attributes. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Property()
public Property(javax.xml.namespace.QName name)
public Property(javax.xml.namespace.QName name, PropertyDefinition definition)
public Property(javax.xml.namespace.QName name, PropertyDefinition definition, java.util.Set<java.lang.Object> values)
Method Detail |
---|
public PropertyDefinition getDefinition()
public javax.xml.namespace.QName getName()
public void setName(javax.xml.namespace.QName name)
name
- the name to setpublic void setDefinition(PropertyDefinition definition)
definition
- the definition to setpublic java.util.Set<java.lang.Object> getValues()
public <T> java.util.Set<T> getValues(java.lang.Class<T> T)
T
- Target class for property valuesT
- Target class for property values
java.lang.ClassCastException
- if the values cannot be cast to "T"public <T> T getValue(java.lang.Class<T> T)
T
- Target class for property valuesT
- Target class for property values
java.lang.ClassCastException
java.lang.IllegalStateException
- more than one value is presentpublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
public java.lang.String getDisplayName()
public java.lang.String getHelp()
public PropertyModification createModification(PropertyModification.ModificationType modificationType, java.util.Set<java.lang.Object> modifyValues)
public PropertyModification createModification(PropertyModification.ModificationType modificationType, java.lang.Object modifyValue)
public java.util.List<org.w3c.dom.Element> serializeToDom(org.w3c.dom.Document doc) throws SchemaProcessorException
doc
- DOM Document
SchemaProcessorException
- No definition or inconsistent definitionpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String dump()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |