|
||||||||||
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 |
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable |
---|
INDENT_STRING |
Method Summary | |
---|---|
protected void |
copyDefinitionData(ItemDefinition clone)
|
boolean |
equals(java.lang.Object obj)
|
javax.xml.namespace.QName |
getName()
Returns name of the defined entity. |
javax.xml.namespace.QName |
getNameOrDefaultName()
Returns either name (if specified) or default name. |
int |
hashCode()
|
abstract Item |
instantiate(PropertyPath parentPath)
Create an item instance. |
abstract Item |
instantiate(javax.xml.namespace.QName name,
java.lang.Object element,
PropertyPath parentPath)
Create an item instance. |
abstract Item |
instantiate(javax.xml.namespace.QName name,
PropertyPath parentPath)
Create an item instance. |
abstract Item |
parseItem(java.util.List<java.lang.Object> elements,
PropertyPath parentPath)
Create at instance of the item initialized from the provided list of elements. |
abstract Item |
parseItemFromJaxbObject(java.lang.Object jaxbObject,
PropertyPath parentPath)
|
void |
setName(javax.xml.namespace.QName name)
|
java.lang.String |
toString()
|
Methods inherited from class com.evolveum.midpoint.schema.processor.Definition |
---|
copyDefinitionData, debugDump, debugDump, dump, getDefaultName, getDisplayName, getHelp, getTypeName, isIgnored, setDisplayName, setHelp, setIgnored |
Methods inherited from class java.lang.Object |
---|
clone, 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 getNameOrDefaultName()
public abstract Item instantiate(PropertyPath parentPath)
public abstract Item instantiate(javax.xml.namespace.QName name, PropertyPath parentPath)
public abstract Item instantiate(javax.xml.namespace.QName name, java.lang.Object element, PropertyPath parentPath)
public abstract Item parseItem(java.util.List<java.lang.Object> elements, PropertyPath parentPath) throws SchemaException
elements
- content of the item
SchemaException
- error parsing the provided elementspublic abstract Item parseItemFromJaxbObject(java.lang.Object jaxbObject, PropertyPath parentPath) throws SchemaException
SchemaException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |