|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.prism.Definition
com.evolveum.midpoint.prism.ItemDefinition
com.evolveum.midpoint.prism.PrismPropertyDefinition
public class PrismPropertyDefinition
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. SeeDefinition
for more details.
Field Summary |
---|
Fields inherited from class com.evolveum.midpoint.prism.ItemDefinition |
---|
name |
Fields inherited from class com.evolveum.midpoint.prism.Definition |
---|
defaultName, displayName, displayOrder, help, ignored, prismContext, typeName |
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable |
---|
INDENT_STRING |
Constructor Summary | |
---|---|
PrismPropertyDefinition(javax.xml.namespace.QName name,
javax.xml.namespace.QName defaultName,
javax.xml.namespace.QName typeName,
PrismContext prismContext)
|
Method Summary | |
---|---|
boolean |
canCreate()
|
boolean |
canRead()
TODO: |
boolean |
canUpdate()
TODO: |
PrismPropertyDefinition |
clone()
|
protected void |
copyDefinitionData(PrismPropertyDefinition clone)
|
ItemDelta |
createEmptyDelta(ItemPath path)
|
boolean |
equals(java.lang.Object obj)
|
protected void |
extendToString(java.lang.StringBuilder sb)
|
java.lang.Object[] |
getAllowedValues()
Returns allowed values for this property. |
protected java.lang.String |
getDebugDumpClassName()
Return a human readable name of this class suitable for logs. |
javax.xml.namespace.QName |
getValueType()
Returns QName of the property value type. |
int |
hashCode()
|
PrismProperty |
instantiate()
Create an item instance. |
PrismProperty |
instantiate(javax.xml.namespace.QName name)
Create an item instance. |
java.lang.Boolean |
isIndexed()
This is XSD annotation that specifies whether a property should be indexed in the storage. |
void |
setCreate(boolean create)
|
void |
setIndexed(java.lang.Boolean indexed)
|
void |
setRead(boolean read)
|
void |
setReadOnly()
|
void |
setUpdate(boolean update)
|
Methods inherited from class com.evolveum.midpoint.prism.ItemDefinition |
---|
copyDefinitionData, getDefaultName, getMaxOccurs, getMinOccurs, getName, getNameOrDefaultName, getNamespace, isDynamic, isMandatory, isMultiValue, isOptional, isSingleValue, isValidFor, setDynamic, setMaxOccurs, setMinOccurs, setName, toString |
Methods inherited from class com.evolveum.midpoint.prism.Definition |
---|
copyDefinitionData, debugDump, debugDump, dump, getDisplayName, getDisplayOrder, getHelp, getPrismContext, getSchemaRegistry, getTypeClass, getTypeName, isIgnored, setDisplayName, setDisplayOrder, setHelp, setIgnored, setTypeName |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrismPropertyDefinition(javax.xml.namespace.QName name, javax.xml.namespace.QName defaultName, javax.xml.namespace.QName typeName, PrismContext prismContext)
Method Detail |
---|
public java.lang.Object[] getAllowedValues()
public boolean canRead()
public boolean canUpdate()
public void setReadOnly()
public javax.xml.namespace.QName getValueType()
public java.lang.Boolean isIndexed()
public void setIndexed(java.lang.Boolean indexed)
public PrismProperty instantiate()
ItemDefinition
instantiate
in class ItemDefinition
public PrismProperty instantiate(javax.xml.namespace.QName name)
ItemDefinition
instantiate
in class ItemDefinition
public ItemDelta createEmptyDelta(ItemPath path)
createEmptyDelta
in class ItemDefinition
public PrismPropertyDefinition clone()
clone
in class ItemDefinition
protected void copyDefinitionData(PrismPropertyDefinition clone)
public void setRead(boolean read)
public void setUpdate(boolean update)
public void setCreate(boolean create)
public boolean canCreate()
protected void extendToString(java.lang.StringBuilder sb)
extendToString
in class ItemDefinition
public int hashCode()
hashCode
in class ItemDefinition
public boolean equals(java.lang.Object obj)
equals
in class ItemDefinition
protected java.lang.String getDebugDumpClassName()
getDebugDumpClassName
in class Definition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |