|
|||||||||
| 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.EmptyType
public class EmptyType
This class represents a null marker for an empty JAXFront type. This is used to provide optional choices of any JAXFront 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, PI_TARGET_JAXFRONT_VAR, PROPERTY_USER_CHANGED_SERIALIZE, TAB_HOLDER |
| Fields inherited from interface com.jaxfront.core.type.Type |
|---|
ComplexGroup, ComplexGroupList, CompositeType, DummyType, EmptyType, GroupType, ListType, NONE, SimpleGroup, SimpleGroupList, SimpleType, SimpleTypeList, VirtualType |
| Constructor Summary | |
|---|---|
EmptyType(SchemaNode schemaElement,
Document dom)
EmptyType constructor. |
|
| Method Summary | |
|---|---|
void |
bind(Document DOM,
org.w3c.dom.Element element)
Binds an existing W3C element and its value(s) to the underlying W3C element. |
void |
bind(java.lang.Object trigger,
Type type)
Binds an existing JAXFront type and its value(s) to myself. |
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. |
Type |
deepClone(Document dom,
boolean cloneChoices,
boolean includingData,
SchemaNode schemaNode,
org.w3c.dom.Element element)
|
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. |
int |
getDirectChildrenSize()
Gets the count of all direct childrens. |
java.lang.String |
getDisplayValue()
Returns this type as a String representation for JTables. |
java.lang.String |
getName()
Gets the name of this type: " ". |
short |
getTypeClassification()
Returns the type classification. |
XUIDefinition |
getXUIDefinition()
Gets the current XUI definition. |
boolean |
hasEmptyContent(boolean checkSerializeDefaults,
boolean checkDefaultValue)
|
boolean |
isAbstract()
Returns true if this type is defined abstract in the schema element. |
boolean |
isEmpty()
Returns true if this type has no tag element (unnamed holder). |
void |
markAsDirtyXPath()
Checks if the passed type holds a recursive element. |
void |
removeAll()
Removes all types from this type. |
boolean |
removeChild(Type child)
Removes a child from the JAXFront DOM. |
void |
serialize(java.lang.StringBuffer sb,
int indent,
boolean writeName,
boolean recursive,
boolean serializeEmptyContent)
Serializes the current subTree to a StringBuffer |
void |
serializeXOM(java.lang.StringBuffer sb,
int indent,
boolean writeName,
boolean recursive)
|
void |
setChoosenKeyContextValue(java.lang.String xpathRelativeToChoosenKeyContext,
java.lang.String newValue)
|
void |
setChoosenKeyValue(java.lang.String xpathRelativeToChoosenKey,
java.lang.String newValue)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyType(SchemaNode schemaElement,
Document dom)
schemaElement - the element of the schema that represents this type| Method Detail |
|---|
public void bind(Document DOM,
org.w3c.dom.Element element)
bind in interface Typebind in class AbstractTypeDOM - the current document to which this type belongselement - the element to bind
public void bind(java.lang.Object trigger,
Type type)
bind in interface Typebind in class AbstractTypetype - the JAXFront type to bindtrigger - trigger object e.g. Clipboard,Button used to identify user triggered actions
public Type deepClone(Document dom,
boolean cloneChoices,
boolean includingData)
throws java.lang.CloneNotSupportedException
deepClone in interface TypedeepClone in class AbstractTypedom - the current dom to which this type belongsincludingData - indicates if all binded data should be copied as well (default is false)
java.lang.CloneNotSupportedException
public Type deepClone(Document dom,
boolean cloneChoices,
boolean includingData,
boolean includeEditingType,
SchemaNode schemaNode,
org.w3c.dom.Element element)
throws java.lang.CloneNotSupportedException
Type
deepClone in interface TypedeepClone in class AbstractTypedom - the current dom to which this type belongsincludingData - indicates if all binded data should be copied as well (default is false)
java.lang.CloneNotSupportedException
public Type deepClone(Document dom,
boolean cloneChoices,
boolean includingData,
SchemaNode schemaNode,
org.w3c.dom.Element element)
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic Type getChild(java.lang.String name)
Type
getChild in interface TypegetChild in class AbstractTypename - name of the child
Type.getChild(java.lang.String)
public Type getChild(java.lang.String name,
java.lang.String nameSpace)
Type
getChild in interface TypegetChild in class AbstractTypename - name of the child
Type.getChild(java.lang.String)public Type getDirectChild(java.lang.String name)
Type
getDirectChild in interface TypegetDirectChild in class AbstractTypename - name of the child
Type.getDirectChild(java.lang.String)
public Type getDirectChild(java.lang.String name,
java.lang.String namespace)
Type
getDirectChild in interface TypegetDirectChild in class AbstractTypename - name of the childnamespace - namespace of the child
Type.getDirectChild(java.lang.String,java.lang.String)public java.util.List getDirectChildren()
getDirectChildren in interface TypegetDirectChildren in class AbstractTypepublic java.util.List getDirectChildren(java.lang.String name)
getDirectChildren in interface TypegetDirectChildren in class AbstractTypename - the name of the child(s)
public int getDirectChildrenSize()
Type
public java.lang.String getDisplayValue()
public java.lang.String getName()
getName in interface QNamegetName in interface TypegetName in class AbstractTypepublic short getTypeClassification()
Type
getTypeClassification in interface TypegetTypeClassification in class AbstractTypepublic XUIDefinition getXUIDefinition()
AbstractType
getXUIDefinition in interface TypegetXUIDefinition in class AbstractType
public boolean hasEmptyContent(boolean checkSerializeDefaults,
boolean checkDefaultValue)
hasEmptyContent in class AbstractTypepublic boolean isAbstract()
isAbstract in interface TypeisAbstract in class AbstractTypepublic boolean isEmpty()
isEmpty in interface TypeisEmpty in class AbstractTypepublic void markAsDirtyXPath()
AbstractType
markAsDirtyXPath in interface TypemarkAsDirtyXPath in class AbstractTypepublic void removeAll()
removeAll in interface TyperemoveAll in class AbstractTypepublic boolean removeChild(Type child)
removeChild in interface TyperemoveChild in class AbstractTypechild - a child type of this type
public void serialize(java.lang.StringBuffer sb,
int indent,
boolean writeName,
boolean recursive,
boolean serializeEmptyContent)
serialize in interface Typeserialize in class AbstractTypesb - a StringBuffer into which the subTree will be serializedindent - size of indentwriteName - true, if the name of the type should be serialized, false otherwiserecursive - true, if all containing types should be serialized
public void serializeXOM(java.lang.StringBuffer sb,
int indent,
boolean writeName,
boolean recursive)
com.jaxfront.core.type.Type#serializeXOM(java.lang.StringBuffer, int, boolean, boolean)
public void setChoosenKeyContextValue(java.lang.String xpathRelativeToChoosenKeyContext,
java.lang.String newValue)
com.jaxfront.core.type.AbstractType#setChoosenKeyContextValue(java.lang.String, java.lang.String)
public void setChoosenKeyValue(java.lang.String xpathRelativeToChoosenKey,
java.lang.String newValue)
com.jaxfront.core.type.AbstractType#setChoosenKeyValue(java.lang.String, java.lang.String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||