|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.prism.Item<PrismPropertyValue<T>>
com.evolveum.midpoint.prism.PrismProperty<T>
public class PrismProperty<T>
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.
Field Summary |
---|
Fields inherited from class com.evolveum.midpoint.prism.Item |
---|
definition, name, parent, prismContext |
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable |
---|
INDENT_STRING |
Constructor Summary | |
---|---|
|
PrismProperty(QName name)
|
protected |
PrismProperty(QName name,
PrismPropertyDefinition definition,
PrismContext prismContext)
|
Method Summary | ||
---|---|---|
void |
addRealValue(T valueToAdd)
|
|
void |
addValue(PrismPropertyValue<T> pValueToAdd)
|
|
void |
addValues(Collection<PrismPropertyValue<T>> pValuesToAdd)
|
|
protected void |
checkDefinition(ItemDefinition def)
|
|
PrismProperty<T> |
clone()
|
|
protected void |
copyValues(PrismProperty<T> clone)
|
|
PropertyDelta<T> |
createDelta(ItemPath path)
Creates specific sublcass of ItemDelta appropriate for type of item that this definition represents (e.g. |
|
String |
debugDump(int indent)
|
|
boolean |
deleteValue(PrismPropertyValue<T> pValueToDelete)
|
|
boolean |
deleteValues(Collection<PrismPropertyValue<T>> pValuesToDelete)
|
|
PropertyDelta<T> |
diff(PrismProperty<T> other,
ItemPath pathPrefix)
|
|
PropertyDelta<T> |
diff(PrismProperty<T> other,
ItemPath pathPrefix,
boolean ignoreMetadata,
boolean isLiteral)
|
|
boolean |
equals(Object obj)
|
|
protected ItemDelta |
fixupDelta(ItemDelta delta,
Item otherItem,
ItemPath pathPrefix,
boolean ignoreMetadata)
|
|
T |
getAnyRealValue()
|
|
protected String |
getDebugDumpClassName()
Return a human readable name of this class suitable for logs. |
|
PrismPropertyDefinition |
getDefinition()
Returns applicable property definition. |
|
String |
getHumanReadableDump()
|
|
PrismPropertyValue<T> |
getNextValue(PrismValue value)
Returns values that is following the specified value. |
|
PrismPropertyValue<T> |
getPreviousValue(PrismValue value)
Returns value that is previous to the specified value. |
|
T |
getRealValue()
|
|
|
getRealValue(Class<X> type)
Type override, also for compatibility. |
|
Collection<T> |
getRealValues()
|
|
|
getRealValues(Class<X> type)
Type override, also for compatibility. |
|
|
getRealValuesArray(Class<X> type)
Type override, also for compatibility. |
|
PrismPropertyValue<T> |
getValue()
|
|
|
getValue(Class<X> type)
Type override, also for compatibility. |
|
Class<T> |
getValueClass()
|
|
List<PrismPropertyValue<T>> |
getValues()
Returns property values. |
|
|
getValues(Class<X> type)
Type override, also for compatibility. |
|
int |
hashCode()
|
|
boolean |
hasRealValue(PrismPropertyValue<T> value)
|
|
boolean |
hasValue(PrismPropertyValue<T> value)
|
|
void |
replaceValues(Collection<PrismPropertyValue<T>> valuesToReplace)
|
|
void |
setDefinition(PrismPropertyDefinition definition)
Sets applicable property definition. |
|
void |
setRealValue(Object realValue)
|
|
void |
setValue(PrismPropertyValue<T> value)
Means as a short-hand for setting just a value for single-valued attributes. |
|
String |
toString()
|
Methods inherited from class com.evolveum.midpoint.prism.Item |
---|
accept, add, addAll, applyDefinition, applyDefinition, asDomElements, assertDefinitions, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, checkConsistenceInternal, clear, cloneCollection, contains, contains, containsEquivalentValue, containsRealValue, copyValues, createNewDefinitionlessItem, debugDump, diff, diff, diff, diffInternal, dump, equalsRealValue, findValue, getClonedValues, getDisplayName, getHelp, getName, getParent, getPath, getPrismContext, getUserData, getUserData, getValue, hasCompleteDefinition, hasRaw, hasRealValue, hasValue, hasValue, isEmpty, isRaw, normalize, remove, remove, removeAll, replace, replaceAll, resetParentCollection, revive, setDefinition, setName, setParent, setPrismContext, setUserData, size |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrismProperty(QName name)
protected PrismProperty(QName name, PrismPropertyDefinition definition, PrismContext prismContext)
Method Detail |
---|
public PrismPropertyDefinition getDefinition()
getDefinition
in interface Itemable
getDefinition
in class Item<PrismPropertyValue<T>>
public void setDefinition(PrismPropertyDefinition definition)
definition
- the definition to setpublic List<PrismPropertyValue<T>> getValues()
getValues
in class Item<PrismPropertyValue<T>>
public PrismPropertyValue<T> getValue()
public <X> List<PrismPropertyValue<X>> getValues(Class<X> type)
public Collection<T> getRealValues()
public <X> Collection<X> getRealValues(Class<X> type)
public T getAnyRealValue()
public T getRealValue()
public <X> X getRealValue(Class<X> type)
public <X> X[] getRealValuesArray(Class<X> type)
public <X> PrismPropertyValue<X> getValue(Class<X> type)
public void setValue(PrismPropertyValue<T> value)
public void setRealValue(Object realValue)
public void addValues(Collection<PrismPropertyValue<T>> pValuesToAdd)
public void addValue(PrismPropertyValue<T> pValueToAdd)
public void addRealValue(T valueToAdd)
public boolean deleteValues(Collection<PrismPropertyValue<T>> pValuesToDelete)
public boolean deleteValue(PrismPropertyValue<T> pValueToDelete)
public void replaceValues(Collection<PrismPropertyValue<T>> valuesToReplace)
public boolean hasValue(PrismPropertyValue<T> value)
public boolean hasRealValue(PrismPropertyValue<T> value)
public PrismPropertyValue<T> getPreviousValue(PrismValue value)
Item
getPreviousValue
in class Item<PrismPropertyValue<T>>
public PrismPropertyValue<T> getNextValue(PrismValue value)
Item
getNextValue
in class Item<PrismPropertyValue<T>>
public Class<T> getValueClass()
public PropertyDelta<T> createDelta(ItemPath path)
Item
createDelta
in class Item<PrismPropertyValue<T>>
public PropertyDelta<T> diff(PrismProperty<T> other, ItemPath pathPrefix)
public PropertyDelta<T> diff(PrismProperty<T> other, ItemPath pathPrefix, boolean ignoreMetadata, boolean isLiteral)
protected void checkDefinition(ItemDefinition def)
checkDefinition
in class Item<PrismPropertyValue<T>>
public PrismProperty<T> clone()
clone
in class Item<PrismPropertyValue<T>>
protected void copyValues(PrismProperty<T> clone)
public int hashCode()
hashCode
in class Item<PrismPropertyValue<T>>
public boolean equals(Object obj)
equals
in class Item<PrismPropertyValue<T>>
protected ItemDelta fixupDelta(ItemDelta delta, Item otherItem, ItemPath pathPrefix, boolean ignoreMetadata)
fixupDelta
in class Item<PrismPropertyValue<T>>
public String toString()
toString
in class Item<PrismPropertyValue<T>>
public String debugDump(int indent)
debugDump
in interface DebugDumpable
debugDump
in class Item<PrismPropertyValue<T>>
public String getHumanReadableDump()
protected String getDebugDumpClassName()
getDebugDumpClassName
in class Item<PrismPropertyValue<T>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |