|
||||||||||
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
public abstract class ItemDefinition
Abstract item definition in the schema. This is supposed to be a superclass for all item definitions. Items are things that can appear in property containers, which generally means only a property and property container itself. Therefore this is in fact superclass for those two definitions. The definitions represent data structures of the schema. Therefore instances of Java objects from this class represent specific definitions from the schema, not specific properties or objects. E.g the definitions does not have any value. To transform definition to a real property or object use the explicit instantiate() methods provided in the definition classes. E.g. the instantiate() method will create instance of Property using appropriate PropertyDefinition. The convenience methods in Schema are using this abstract class to find appropriate definitions easily.
Field Summary | |
---|---|
protected javax.xml.namespace.QName |
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 |
Method Summary | |
---|---|
abstract ItemDefinition |
clone()
|
protected void |
copyDefinitionData(ItemDefinition clone)
|
abstract ItemDelta |
createEmptyDelta(ItemPath path)
|
boolean |
equals(java.lang.Object obj)
|
protected void |
extendToString(java.lang.StringBuilder sb)
|
javax.xml.namespace.QName |
getDefaultName()
Returns default name for the defined entity. |
int |
getMaxOccurs()
Return the number of maximal value occurrences. |
int |
getMinOccurs()
Return the number of minimal value occurrences. |
javax.xml.namespace.QName |
getName()
Returns name of the defined entity. |
javax.xml.namespace.QName |
getNameOrDefaultName()
Returns either name (if specified) or default name. |
java.lang.String |
getNamespace()
|
int |
hashCode()
|
abstract Item |
instantiate()
Create an item instance. |
abstract Item |
instantiate(javax.xml.namespace.QName name)
Create an item instance. |
boolean |
isDynamic()
Returns true if definition was created during the runtime based on a dynamic information such as xsi:type attributes in XML. |
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. |
boolean |
isValidFor(javax.xml.namespace.QName elementQName,
java.lang.Class<? extends ItemDefinition> clazz)
|
void |
setDynamic(boolean dynamic)
|
void |
setMaxOccurs(int maxOccurs)
|
void |
setMinOccurs(int minOccurs)
|
void |
setName(javax.xml.namespace.QName name)
|
java.lang.String |
toString()
|
Methods inherited from class com.evolveum.midpoint.prism.Definition |
---|
copyDefinitionData, debugDump, debugDump, dump, getDebugDumpClassName, 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 |
Field Detail |
---|
protected javax.xml.namespace.QName name
Method Detail |
---|
public javax.xml.namespace.QName getName()
public void setName(javax.xml.namespace.QName name)
public javax.xml.namespace.QName getDefaultName()
Definition
getDefaultName
in class Definition
public javax.xml.namespace.QName getNameOrDefaultName()
public java.lang.String getNamespace()
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 boolean isDynamic()
public void setDynamic(boolean dynamic)
public boolean isValidFor(javax.xml.namespace.QName elementQName, java.lang.Class<? extends ItemDefinition> clazz)
public abstract Item instantiate()
public abstract Item instantiate(javax.xml.namespace.QName name)
public abstract ItemDelta createEmptyDelta(ItemPath path)
public abstract ItemDefinition clone()
clone
in class java.lang.Object
protected void copyDefinitionData(ItemDefinition clone)
public int hashCode()
hashCode
in class Definition
public boolean equals(java.lang.Object obj)
equals
in class Definition
public java.lang.String toString()
toString
in class Definition
protected void extendToString(java.lang.StringBuilder sb)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |