|
||||||||||
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.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.schema.processor.Definition |
---|
defaultName, displayName, help, ignored, typeName |
Method Summary | |
---|---|
javax.xml.namespace.QName |
getName()
Returns name of the defined entity. |
javax.xml.namespace.QName |
getNameOrDefaultName()
Returns either name (if specified) or default name. |
abstract Item |
instantiate()
Create an item instance. |
abstract Item |
instantiate(javax.xml.namespace.QName name)
Create an item instance. |
abstract Item |
instantiate(javax.xml.namespace.QName name,
java.lang.Object element)
Create an item instance. |
abstract Item |
parseItem(java.util.List<java.lang.Object> elements)
Create at instance of the item initialized from the provided list of elements. |
java.lang.String |
toString()
|
Methods inherited from class com.evolveum.midpoint.schema.processor.Definition |
---|
dump, dump, getDefaultName, getDisplayName, getHelp, getTypeName, isIgnored, setDisplayName, setHelp, setIgnored |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.xml.namespace.QName name
Method Detail |
---|
public javax.xml.namespace.QName getName()
public javax.xml.namespace.QName getNameOrDefaultName()
public abstract Item instantiate()
public abstract Item instantiate(javax.xml.namespace.QName name)
public abstract Item instantiate(javax.xml.namespace.QName name, java.lang.Object element)
public abstract Item parseItem(java.util.List<java.lang.Object> elements) throws SchemaException
elements
- content of the item
SchemaException
- error parsing the provided elementspublic java.lang.String toString()
toString
in class Definition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |