public abstract class ItemDefinition extends Definition implements Serializable
Modifier and Type | Field and Description |
---|---|
protected QName |
name |
defaultName, displayName, displayOrder, help, ignored, isRuntimeSchema, prismContext, typeName
INDENT_STRING
Modifier and Type | Method and Description |
---|---|
abstract ItemDefinition |
clone() |
protected void |
copyDefinitionData(ItemDefinition clone) |
abstract ItemDelta |
createEmptyDelta(ItemPath path) |
boolean |
equals(Object obj) |
protected void |
extendToString(StringBuilder sb) |
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.
|
QName |
getName()
Returns name of the defined entity.
|
QName |
getNameOrDefaultName()
Returns either name (if specified) or default name.
|
String |
getNamespace() |
int |
hashCode() |
abstract Item |
instantiate()
Create an item instance.
|
abstract Item |
instantiate(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 |
isOperational() |
boolean |
isOptional()
Returns true if property is optional.
|
boolean |
isSingleValue()
Returns true if property is single-valued.
|
boolean |
isValidFor(QName elementQName,
Class<? extends ItemDefinition> clazz) |
void |
setDynamic(boolean dynamic) |
void |
setMaxOccurs(int maxOccurs) |
void |
setMinOccurs(int minOccurs) |
void |
setName(QName name) |
void |
setOperational(boolean operational) |
String |
toString() |
copyDefinitionData, debugDump, debugDump, dump, getDebugDumpClassName, getDisplayName, getDisplayOrder, getHelp, getPrismContext, getSchemaRegistry, getTypeClass, getTypeName, isIgnored, isRuntimeSchema, setDisplayName, setDisplayOrder, setHelp, setIgnored, setRuntimeSchema, setTypeName
protected QName name
public QName getName()
public void setName(QName name)
public QName getDefaultName()
Definition
getDefaultName
in class Definition
public QName getNameOrDefaultName()
public 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 isOperational()
public void setOperational(boolean operational)
public boolean isDynamic()
public void setDynamic(boolean dynamic)
public boolean isValidFor(QName elementQName, Class<? extends ItemDefinition> clazz)
public abstract Item instantiate()
public abstract Item instantiate(QName name)
public abstract ItemDefinition clone()
clone
in class Definition
protected void copyDefinitionData(ItemDefinition clone)
public int hashCode()
hashCode
in class Definition
public boolean equals(Object obj)
equals
in class Definition
public String toString()
toString
in class Definition
protected void extendToString(StringBuilder sb)
Copyright © 2013 evolveum. All rights reserved.