|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jaxfront.core.type.AbstractType
com.jaxfront.core.type.AbstractListType
public abstract class AbstractListType
This class represents an abstract list type. A list type is a JAXFront type that holds a list of other types.
| Field Summary |
|---|
| Fields inherited from class com.jaxfront.core.type.AbstractType |
|---|
_needXUIMaintain, FIELD_ADD, FIELD_LIST_CLOSE_BRACKET, FIELD_LIST_IDENTIFIER, FIELD_LIST_OPEN_BRACKET, FIELD_SLASH, indentChars, MISSING_TYPES_CREATED, PROPERTY_USER_CHANGED_SERIALIZE, TAB_HOLDER |
| Fields inherited from interface com.jaxfront.core.type.ListType |
|---|
VALIDATE_ADD, VALIDATE_DELETE, VALIDATE_NOCHANGE |
| Fields inherited from interface com.jaxfront.core.type.Type |
|---|
ComplexGroup, ComplexGroupList, CompositeType, DummyType, EmptyType, GroupType, ListType, NONE, SimpleGroup, SimpleGroupList, SimpleType, SimpleTypeList, VirtualType |
| Constructor Summary | |
|---|---|
AbstractListType(SchemaNode schemaElement,
Type editingType)
AbstractListType constructor. |
|
| Method Summary | |
|---|---|
void |
add(int index,
java.lang.Object element)
|
boolean |
add(java.lang.Object o)
|
Type |
add(java.lang.Object source,
Type type,
int index,
boolean check)
Adds a new type to the list with the possibility to place it somewhere in the list. |
Type |
add(Type type)
Adds a new type to the list. |
boolean |
addAll(java.util.Collection c)
|
boolean |
addAll(int index,
java.util.Collection c)
|
Type |
addNewChild()
Adds a new child to the list. |
Type |
addNewChild(int index)
Adds a new child to the list. |
Type |
addNewChild(java.lang.Object source,
Type templateType,
int targetIndex)
Copies the given templateType and adds it to the list at the given index position. |
Type |
addNewChild(Type templateType)
Adds a new child to the list. |
Type |
addNewChild(Type templateType,
int targetIndex)
Copies the given templateType and adds it to the list at the given index position. |
Type |
addNewChild(Type templateType,
Type beforeType)
Adds a new child to the list and puts it before the passing type. |
void |
addNoTargetXUIDefinition(Type xuiType)
Adds an information to a XUI type if a list doesn't contain any types for which a XUI definition would exist. |
void |
autoCreateEntries()
Create the initial number of required min occur list items. |
void |
bind(Document DOM,
org.w3c.dom.Element instanceElement)
Binds an existing W3C element and its value(s) to the underlying W3C element. |
void |
bind(Document DOM,
org.w3c.dom.Element instanceElement,
boolean bindOnlyAvailable)
Binds the values on a W3C element to the underlying JAXFront type. |
void |
bind(Document DOM,
org.w3c.dom.Element instanceElement,
boolean bindOnlyAvailable,
boolean removeChilds)
|
void |
bind(java.lang.Object trigger,
Type type)
Binds an existing JAXFront type and its value(s) to myself. |
void |
checkCardinality(int changes)
Checks if removing or adding a new list entry violates the cardinality. |
void |
checkXUIDefinition(Type originalType,
Type newType)
|
void |
clear()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection c)
|
void |
copyAndPasteChild(java.lang.Integer typeToCopyIndex,
java.lang.Integer targetIndex)
|
void |
copyAndPasteChild(Type typeToCopy)
|
void |
copyAndPasteChild(Type typeToCopy,
java.lang.Integer targetIndex)
|
Type |
copyChild(java.lang.Integer typeToCopyindex)
Copies the child with the given index and returns it. |
Type |
deepClone(Document dom,
boolean cloneChoices,
boolean includingData)
Creates a deep clone of this type and all its referenced types. |
Type |
deepClone(Document dom,
boolean cloneChoices,
boolean includingData,
boolean includeEditingType,
SchemaNode schemaNode,
org.w3c.dom.Element element)
Creates a deep clone of this type and all its referenced types. |
java.lang.Object |
delete(java.lang.Object source,
int index,
boolean isTemporary,
boolean check)
Deletes a type according its index from the list saying if this is just temporary and if the cardinality should be checked. |
java.lang.Object |
delete(Type type)
Deletes a type from the list. |
java.lang.Object |
delete(Type type,
boolean isTemporary)
Deletes a type from the list saying if this is just temporary. |
java.lang.Object |
delete(Type type,
boolean isTemporary,
boolean check)
Deletes a type from the list saying if this is just temporary and if the cardinality should be checked. |
java.lang.Object |
get(int index)
|
Type |
getChild(java.lang.String name)
Gets a child (recursive) type with a given name |
Type |
getChild(java.lang.String name,
java.lang.String namespace)
Gets a child (recursive) type with a given name |
Type |
getDirectChild(java.lang.String name)
Gets a direct child (next axis) type with a given name |
Type |
getDirectChild(java.lang.String name,
java.lang.String namespace)
Gets a direct child (next axis) type with a given name |
java.util.List |
getDirectChildren()
Gets a list of all child types. |
java.util.List |
getDirectChildren(java.lang.String name)
Gets a list of child types with a given name. |
java.lang.String |
getDisplayValue()
Returns this type as a String representation. |
Type |
getEditingType()
Gets the current editable type of the list. |
java.util.List |
getList()
Gets the list of types. |
int |
getMaxOccurs()
Returns the maximum number of allowed list entries. |
int |
getMinOccurs()
Returns the minimum number of allowed list entries. |
java.util.List |
getNoTargetXUIDefinitions()
Gets a list of all noTargetXUIDefinitions. |
int[] |
getSortIndexes()
Returns the sort indexes or null. |
boolean |
hasAbstractContent()
|
boolean |
hasEmptyContent(boolean checkSerializeDefaults,
boolean checkDefaultValue)
|
int |
indexOf(java.lang.Object o)
|
boolean |
isChoice()
Returns true if this type is acting as a choice. |
boolean |
isList()
Returns true if this type represents a list. |
boolean |
isListItemRemoveable(Type listEntry)
|
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.Object o)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
void |
maintainEditingTypeParent(Type editingType,
Type parent)
|
void |
maintainXUIDefinitions(Type type)
Traverses down the editing type and maintains all the xui definitions set on the editing type axis to the passed type. |
void |
markAsDirtyXPath()
Checks if the passed type holds a recursive element. |
void |
move(int from,
int to)
Moves the type from position "from" to position "to", shifting the other elements |
void |
release()
Release all allocated resources for this type. |
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
void |
removeAll()
Removes all childs of the list. |
void |
removeAll(boolean isTemporary,
boolean check)
Removes all childs of the list. |
boolean |
removeAll(java.util.Collection c)
|
java.lang.Object |
removeChild(int index)
Removes the child with the given index from the list. |
boolean |
removeChild(Type child)
Removes a child from the JAXFront DOM. |
java.lang.Object |
removeLastChild(boolean isTemporary)
Removes a child from the JAXFront DOM. |
void |
removeNoTargetXUIDefinition(Type xuiType)
Removes an information of a XUI type if a list doesn't contain any types for which a XUI definition would exist. |
boolean |
retainAll(java.util.Collection c)
|
void |
serialize(java.lang.StringBuffer sb,
int indent,
boolean writeName,
boolean recursive)
Serializes the current subTree to a StringBuffer |
java.lang.Object |
set(int index,
java.lang.Object element)
|
void |
setChoosenKeyContextValue(java.lang.String xpathRelativeToChoosenKeyContext,
java.lang.String newValue)
|
void |
setChoosenKeyValue(java.lang.String xpathRelativeToChoosenKey,
java.lang.String newValue)
|
void |
setEditingType(Type editingType)
Resets the editing type. |
void |
setList(java.util.List list)
Sets the list entries. |
void |
setSortIndexes(int[] sortIndexes)
Set the sort indexes. |
int |
size()
|
java.util.List |
sort(int direction)
|
java.util.List |
subList(int fromIndex,
int toIndex)
|
void |
swap(int from,
int to)
Swaps the position of two given types in the list |
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
boolean |
violateCardinality(int changes)
Checks if removing or adding a new list entry violates the cardinality. |