|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jaxfront.core.type.AbstractType
public abstract class AbstractType
This class represents an abstract JAXFront type. Every type holds the belonging meta information (XML schema element), a W3C element, the target JAXFront DOM and the XUIDefinition.
| Field Summary | |
|---|---|
boolean |
_needXUIMaintain
|
static java.lang.String |
FIELD_ADD
|
static java.lang.String |
FIELD_LIST_CLOSE_BRACKET
|
static java.lang.String |
FIELD_LIST_IDENTIFIER
|
static java.lang.String |
FIELD_LIST_OPEN_BRACKET
|
static java.lang.String |
FIELD_SLASH
|
static char[] |
indentChars
|
static java.lang.String |
MISSING_TYPES_CREATED
|
static java.lang.String |
PI_TARGET_JAXFRONT_VAR
|
static java.lang.String |
PROPERTY_USER_CHANGED_SERIALIZE
|
static java.lang.String |
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 | |
|---|---|
AbstractType()
|
|
AbstractType(SchemaNode schemaElement)
AbstractType constructor. |
|
| Method Summary | |
|---|---|
void |
addTreeNode(boolean shouldBeSerialized)
Adds this type to the tree. |
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(org.w3c.dom.Element instanceElement)
Binds the values on a W3C element to the underlying JAXFront type. |
abstract void |
bind(java.lang.Object trigger,
Type type)
Binds an existing JAXFront type and its value(s) to myself. |
void |
bind(Type type)
Binds the values of an JAXFront type to myself. |
boolean |
checkForEmptyContent()
Flags this type as checked for empty content. |
void |
checkGlobalUIDefinition()
Checks the global ui definitions for this type. |
void |
checkKeysForDeletion(Type childToDelete)
|
int |
countSubTypes()
|
Type |
deepClone(Document dom)
Creates a deep clone of this type and all its referenced types. |
abstract Type |
deepClone(Document dom,
boolean cloneChoices,
boolean includingData)
Creates a deep clone of this type and all its referenced types. |
abstract 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. |
void |
domChanged(DOMChangeEvent event)
Respond method for a DOM state changed (DOMChangeEvent). |
void |
forceSerialization(boolean force)
|
java.lang.String |
getAbsoluteXPathLocation()
|
void |
getAllKeyChilds(java.util.List found,
Type type)
|
void |
getAllKeyFieldChilds(java.util.List found,
Type type)
|
abstract Type |
getChild(java.lang.String name)
Gets a child (recursive) type with a given name |
abstract Type |
getChild(java.lang.String nameSpace,
java.lang.String name)
Gets a child (recursive) type with a given name |
Type |
getChoosenType()
Gets the choosen type if this type is a choice element. |
java.lang.Object |
getClientProperty(java.lang.String key)
Gets a client property for this type. |
java.util.List |
getDerivedTypes()
Gets a list of all derived types if this type is an abstract type. |
abstract Type |
getDirectChild(java.lang.String name)
Gets a direct child (next axis) type with a given name |
abstract Type |
getDirectChild(java.lang.String name,
java.lang.String namespace)
Gets a direct child (next axis) type with a given name |
abstract java.util.List |
getDirectChildren()
Gets a list of all child types. |
abstract java.util.List |
getDirectChildren(java.lang.String name)
Gets a list of child types with a given name. |
java.lang.String |
getDirectChildValue(java.lang.String name)
Gets the value of a child type with a given name. |
Document |
getDOM()
Gets the current JAXFront document (DOM). |
java.lang.String |
getEdTypeUUID()
|
Type |
getFirstNamedParent()
|
java.lang.String |
getFullCaption()
Returns the nls translated (if any) xpath of a type up to its upper most represented tree node parent. |
java.lang.String |
getFullCaption(int labelLength)
Returns the nls translated (if any) xpath of a type up to its upper most represented tree node parent. |
GlobalDefinition |
getGlobalDefinition()
|
int |
getGlobalEdTypeRefCount()
|
short[] |
getId()
Gets a unique ID within the current JAXFront documennt (DOM) expressing axis position. |
ListType |
getLastParentList()
|
ListType |
getLastParentList(ListType listType)
|
javax.swing.ImageIcon |
getMessageContextIcon()
|
Type |
getMixedContent()
Returns the mixed content leaf type or null if none. |
java.lang.String |
getName()
Returns the name witout namespace previx. |
java.lang.String |
getNamespace()
Gets the namespace name of the underlying W3C DOM. |
Type |
getNextSibling()
Returns the next sibling type of the current type. |
Type |
getParent()
Gets the parent type of the current type. |
Type |
getParent(java.lang.String parentName)
Gets the parent type with the given name. |
Type |
getParentEditingTypeClone(ListType parentList,
Type choiceType)
|
ListType |
getParentList()
Gets the parent list type of the current type. |
java.lang.String |
getPrefixedXPathLocation()
Gets the prefixed xpath location of the current type. |
Type |
getPreviousSibling()
Returns the previous sibling type of the current type. |
java.beans.PropertyChangeSupport |
getPropertyChangeSupport()
Gets the PropertyChangeSupport helper instance for this type. |
java.lang.String |
getQName()
Gets the tag name including namespace prefix. |
java.lang.String |
getRefName()
|
Type |
getRepresentedTableLayoutParent()
Returns the type (one of my parents) which defines a tableLayout which represents this type or null. |
Type |
getRepresentedTabParent(boolean checkCurrentType)
Gets the holding tree parent type that is represented as tab. |
Type |
getRepresentedTreeNodeHolder()
Gets the holding tree parent type in the navigation tree, where the view holder is self. |
Type |
getRepresentedTreeNodeParent()
Gets the holding tree parent type in the navigation tree. |
javax.swing.ImageIcon |
getRepresentedTreeNodeParentIcon()
Returns the uppermost icon that can be found of the tree node parents of the current type. |
java.lang.String |
getRepresentedTreeNodeParentIconName()
Returns the name of the uppermost icon that can be found of the tree node parents of the current type. |
SchemaNode |
getSchemaElement()
Gets the meta information schema element. |
SchemaType |
getSchemaType()
|
boolean |
getSerializableFlag()
|
java.lang.String |
getSerializationName()
|
java.lang.String |
getSerializationName2()
|
java.lang.String |
getShortCaption()
Returns the nls translated (if any) xpath of a type up to its upper most represented tree node parent. |
StyleDefinition |
getStyle()
|
Type |
getTemplate()
Returns true if this type has changed. |
java.lang.String |
getTreeHierarchyContext()
Returns the treeEntry hierarchy of the current type as coma separated String (context). |
short |
getTypeClassification()
Returns the type classification. |
java.util.HashMap<java.lang.String,java.lang.String> |
getUIState()
|
java.lang.String |
getUIState(java.lang.String id)
|
java.lang.Object |
getUserObject()
Gets any user object set to this type. |
java.lang.String |
getVarName()
|
Type |
getViewContextType()
|
java.lang.String |
getVisualName()
Returns the visual name of this type. |
java.lang.String |
getW3CXPathLocation(boolean prefixed)
Gets the W3C xpath location of the current type.This method returns the xpath without internal created unnamed elements! |
java.lang.String |
getXPathLocation()
Gets the xpath location of the current type. |
XUIDefinition |
getXUIDefinition()
Gets the current XUI definition. |
XUIDefinition |
getXUIDefinition(boolean create)
Gets the current XUI definition saying if a xui definition should be initialized lazy if it does not exist. |
XUIDefinition |
getXUIDefinition(boolean create,
boolean isReleasing)
|
boolean |
hasChanged()
Returns true if all my children are simple types. |
boolean |
hasChoosenType()
Returns true if this type has a Choosen type. |
abstract boolean |
hasEmptyContent(boolean checkSerializeDefaults,
boolean checkDefaultValue)
|
boolean |
hasEmptyContentParent(boolean checkSerializeDefaults,
boolean checkDefaultValue)
Returns true if my parent holds empty content. |
boolean |
hasRecursionBeenBuilt()
Returns true if type is a recursion holder and recursive start element has been created yet. |
boolean |
hasRepresentableTreeChildren()
Returns true if this type has any child types represented in the navigation tree. |
boolean |
hasUIDefinition()
Returns true if the uiDefinition is alredy set. |
boolean |
hasUnChoosenChoiceParent()
Returns true if this type has an unchoosen choice parent, false otherwise |
boolean |
hasUndefinedChildren()
Returns true it this type holds a direct optional child. |
boolean |
hasValidationError()
Returns true if an validation error exists for this type. |
boolean |
isAbstract()
Returns true if this type is defined abstract in the schema element. |
boolean |
isAnonymous()
Returns true if this type has no tag element (unnamed holder). |
boolean |
isAttribute()
Returns true if this type is defined as an attribute in the XML schema. |
boolean |
isChoice()
Returns true if this type is acting as a choice. |
boolean |
isComposite()
Returns true if this type consists of other types. |
boolean |
isDerived()
Returns true if this type is implementing an abstract type. |
boolean |
isDerivedFrom(Type type)
Returns true if this type is a child of a given type. |
boolean |
isDerivedFrom(Type type,
boolean firstIteration)
|
boolean |
isDerivedFromEditingType()
Returns true if this type is derived from an editing type. |
boolean |
isEditingType()
Returns true if my parent is a list and this type is a template for further addings. |
boolean |
isEmpty()
Returns true if this type is not represented in the target JAXFront DOM. |
boolean |
isGlobal()
Return true it this type is global. |
boolean |
isGlobalEdType()
|
boolean |
isIncluded()
Returns true if this type was included from an included xui file. |
boolean |
isInRepresentationTree(Type type)
Returns true if the passing type is represented in the tree. |
boolean |
isKey()
Returns true if this type is a key selector. |
boolean |
isKeyContext()
Returns true if this type is a key context used in KeyKeyRefManager. |
boolean |
isKeyRef()
Returns true if this type is a key ref selector. |
boolean |
isKeyRemovable()
Adds a new key reference to the key selector type. |
boolean |
isList()
Returns true if this type represents a list. |
boolean |
isLocked()
Returns true if this type is locked via document.lock(). |
boolean |
isMandatoryAxis()
|
boolean |
isMandatoryAxis(boolean checkForEmptyContent)
Returns true if this type and all its ancestors are mandatory (1:1 cardinality). |
boolean |
isNoneChoosen()
|
boolean |
isRecursive()
Returns true if this type is starting a new recursion. |
boolean |
isReleased()
|
boolean |
isRenderable()
Returns true if the type is included into the rendering process. |
boolean |
isRepresentedAsHeader()
Returns true if this type has a header. |
boolean |
isRepresentedAsTab()
Returns true if this type is represented as tab. |
boolean |
isRepresentedAsTreeNode()
Returns true if this type is represented in the navigation tree. |
boolean |
isRequired()
Returns true if this type is defined mandatory in the xml schema. |
boolean |
isRoot()
Returns true if this type is the root of the JAXFront DOM. |
boolean |
isSerializable()
Returns true if this type should be serialized in the resulting W3C DOM. |
boolean |
isSerializable(boolean checkValue)
Returns true if this type should be serialized in the resulting W3C DOM. |
boolean |
isSerializable(boolean checkValue,
boolean serDefaults)
|
boolean |
isSimple()
Returns true if this is a leaf in the tree. |
boolean |
isUserInstanciated()
|
boolean |
isVirtual()
Returns true if this type is implementing an virtual type. |
void |
jumpTo()
|
abstract void |
markAsDirtyXPath()
Checks if the passed type holds a recursive element. |
void |
markAsIncluded()
Marks this type as included. |
void |
notifyChildsForDeletion(java.util.List childs,
boolean check)
|
void |
notifyKeyRefChildsForCreation(Type createdChild)
|
void |
notifyKeyRefChildsForDeletion(Type childToDelete,
boolean check)
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
putClientProperty(java.lang.String key,
java.lang.Object object)
|
void |
putUIState(java.lang.String id,
java.lang.String param)
|
void |
release()
Release all allocated resources for this type. |
boolean |
remove()
Removes this type from the JAXFront DOM. |
abstract void |
removeAll()
Removes all types from this type. |
void |
removeAllKeyReferences()
Adds a new key reference to the key selector type. |
abstract boolean |
removeChild(Type child)
Removes a child from the JAXFront DOM. |
void |
removeClientProperty(java.lang.String key)
|
void |
removeHint()
Removes a user defined hint message below the current component. |
void |
removeMessage()
Removes all validation error messages for this type. |
void |
removeTreeNode(boolean shouldBeSerialized)
Removes this type from the tree. |
java.lang.StringBuffer |
serialize()
Serializes the current subTree to a StringBuffer |
java.lang.StringBuffer |
serialize(boolean serializeEmptyContent)
Serializes the current subTree to a StringBuffer |
void |
serialize(java.lang.StringBuffer sb,
int indent,
boolean writeName,
boolean recursive)
Serializes the current subTree to a StringBuffer |
void |
serialize(java.lang.StringBuffer sb,
int indent,
boolean writeName,
boolean recursive,
boolean serializeEmptyContent)
Serializes the current subTree to a StringBuffer |
void |
setAnonymous(boolean isAnonymous)
|
void |
setApplicationRequired(boolean required)
Sets if an user input is required for this type or not (overwrites xml schema cardinality). |
void |
setBackground(java.awt.Color color)
|
void |
setChoiceEnabled(boolean isEnabled)
|
void |
setChoosenType(java.lang.Object source,
Type type,
boolean isTemporary,
boolean includingData)
Sets the choosen type if this type is a choice. |
void |
setChoosenType(java.lang.Object source,
Type type,
boolean isTemporary,
boolean includingData,
boolean isInitializing)
Sets the choosen type if this type is a choice. |
void |
setChoosenType(Type type)
Sets the choosen type if this type is a choice. |
void |
setChoosenType(Type type,
boolean isTemporary)
Sets the choosen type if this type is a choice. |
void |
setCodeSetValues(java.lang.String url,
java.lang.String codeSetName,
java.lang.String[] values,
java.lang.String defaultSelection)
Sets the codeSet values for the current type. |
void |
setCodeSetValues(java.lang.String url,
java.lang.String codeSetName,
java.lang.String[] values,
java.lang.String defaultSelection,
boolean syncWithCodeEnum,
boolean valueBasedSync)
|
void |
setDirectChildValue(java.lang.String childName,
java.lang.String value)
Sets the value of a child type of this type. |
void |
setDirectChildValue(java.lang.String childName,
java.lang.String value,
boolean temporary)
Sets the value of a child type of this type. |
void |
setDOM(Document DOM)
Sets a current JAXFront document (DOM). |
void |
setEditable(boolean editable)
Sets the component editable or not editable. |
void |
setEnabled(boolean enabled)
Sets if this type is enabled. |
void |
setForeground(java.awt.Color color)
|
void |
setGlobalEdType(boolean isGlobalEdType)
|
void |
setGlobalEdTypeRefCount(int globalEdTypeRefCount)
|
void |
setHasChanged(boolean changed)
|
void |
setId(short[] id)
Sets a unique ID within the current JAXFront documennt (DOM) expressing axis position. |
void |
setIsChoice(boolean isChoice)
|
void |
setIsKeyContext(boolean isContext)
Set true if this type is a key context! |
void |
setLabelColor(java.awt.Color color)
|
void |
setLabelText(java.lang.String text)
|
void |
setNoneChoosen(boolean noneChoosen)
|
void |
setParent(Type parent)
Gets the parent type of the current type. |
void |
setRecursionBuilt(boolean built)
|
void |
setRenderable(boolean renderable)
Defines if the type should be included into the rendering process. |
void |
setSchemaElement(SchemaNode element)
Sets the meta information schema element. |
void |
setSerializable(boolean isSerializable)
Sets if this type should be serialized in the resulting W3C DOM. |
void |
setSerializable(boolean isSerializable,
boolean checkForEmptyContent)
Sets if this type should be serialized in the resulting W3C DOM and if it should be checked for empty content. |
void |
setTemplate(Type template)
|
void |
setTreeIcon(java.lang.String gifName)
Set the tree icon for this type. |
void |
setUIDefinition(XUIDefinition uiDefinition)
Sets a XUI definition to this type. |
void |
setUserInstanciated(boolean userTriggered)
|
void |
setUserObject(java.lang.Object object)
Sets any user object to this type. |
void |
setVarName(java.lang.String varName)
|
void |
setViewContextType(Type viewHolder)
|
void |
setVisible(boolean visible)
Sets the visualizer of this type visible or invisible at runtime. |
void |
setVisibleAndSerializable(boolean visible,
boolean isSerializable)
Sets the component visible or invisible at runtime and defines if the data will be serialized or not. |
void |
showHint(java.lang.String text,
boolean isFormula,
java.awt.Color color,
boolean isBold)
Shows an user defined hint message below the current component. |
void |
showLabel(boolean visible)
Sets the label visible or invisible. |
void |
showMessage(java.lang.String message,
java.lang.String classification,
boolean showDialog,
boolean needsUserAcceptance)
Dislplays a message for this type with the passed information. |
java.lang.String |
toString()
Returns this type as a String representation. |
boolean |
unChoosenBranch()
|
void |
unmarkAsIncluded()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.jaxfront.core.type.Type |
|---|
getDirectChildrenSize, getDisplayValue |
| Field Detail |
|---|
public boolean _needXUIMaintain
public static final java.lang.String FIELD_ADD
public static final java.lang.String FIELD_LIST_CLOSE_BRACKET
public static final java.lang.String FIELD_LIST_IDENTIFIER
public static final java.lang.String FIELD_LIST_OPEN_BRACKET
public static final java.lang.String FIELD_SLASH
public static final char[] indentChars
public static final java.lang.String MISSING_TYPES_CREATED
public static final java.lang.String PI_TARGET_JAXFRONT_VAR
public static final java.lang.String PROPERTY_USER_CHANGED_SERIALIZE
public static final java.lang.String TAB_HOLDER
| Constructor Detail |
|---|
public AbstractType()
public AbstractType(SchemaNode schemaElement)
schemaElementElement - the element of the schema that represents this type| Method Detail |
|---|
public void addTreeNode(boolean shouldBeSerialized)
addTreeNode in interface TypeshouldBeSerialized - defines if this type should be serialized
public void bind(Document DOM,
org.w3c.dom.Element instanceElement)
bind in interface TypeDOM - the current document to which this type belongsinstanceElement - the element to bind
public void bind(Document DOM,
org.w3c.dom.Element instanceElement,
boolean bindOnlyAvailable)
Type
bind in interface TypeDOM - the current document to which this type belongsinstanceElement - the element to bindbindOnlyAvailable - indicates if the not available elements will be removed from type treepublic void bind(org.w3c.dom.Element instanceElement)
Type
bind in interface Type
public abstract void bind(java.lang.Object trigger,
Type type)
bind in interface Typetype - the JAXFront type to bindtrigger - trigger object e.g. Clipboard,Button used to identify user triggered actionspublic void bind(Type type)
bind in interface TypeDOM - the current document to which this type belongstrigger - trigger object e.g. Clipboard,Button used to identify user triggered actionstype - the type to bind topublic boolean checkForEmptyContent()
public void checkGlobalUIDefinition()
public void checkKeysForDeletion(Type childToDelete)
throws KeyRefException
KeyRefExceptionpublic int countSubTypes()
public Type deepClone(Document dom)
throws java.lang.CloneNotSupportedException
dom - the current dom to which this type belongs
java.lang.CloneNotSupportedException - if this type cannot be cloned
public abstract Type deepClone(Document dom,
boolean cloneChoices,
boolean includingData)
throws java.lang.CloneNotSupportedException
deepClone in interface Typedom - 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 abstract 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 Typedom - the current dom to which this type belongsincludingData - indicates if all binded data should be copied as well (default is false)
java.lang.CloneNotSupportedExceptionpublic void domChanged(DOMChangeEvent event)
DOMChangeListener
domChanged in interface DOMChangeListenerevent - occured DOMChangeEventDOMChangeListener.domChanged(com.jaxfront.core.dom.DOMChangeEvent)public void forceSerialization(boolean force)
public java.lang.String getAbsoluteXPathLocation()
public void getAllKeyChilds(java.util.List found,
Type type)
public void getAllKeyFieldChilds(java.util.List found,
Type type)
public abstract Type getChild(java.lang.String name)
Type
getChild in interface Typename - name of the child
Type.getChild(java.lang.String)
public abstract Type getChild(java.lang.String nameSpace,
java.lang.String name)
Type
getChild in interface TypenameSpace - name of the child
Type.getChild(java.lang.String)public Type getChoosenType()
getChoosenType in interface Typepublic java.lang.Object getClientProperty(java.lang.String key)
Type
getClientProperty in interface TypeType.getClientProperty(java.lang.String)public java.util.List getDerivedTypes()
getDerivedTypes in interface Typepublic abstract Type getDirectChild(java.lang.String name)
Type
getDirectChild in interface Typename - name of the child
Type.getDirectChild(java.lang.String)
public abstract Type getDirectChild(java.lang.String name,
java.lang.String namespace)
Type
getDirectChild in interface Typename - name of the childnamespace - namespace of the child
Type.getDirectChild(java.lang.String,java.lang.String)public abstract java.util.List getDirectChildren()
getDirectChildren in interface Typepublic abstract java.util.List getDirectChildren(java.lang.String name)
getDirectChildren in interface Typename - the name of the child(s)
public java.lang.String getDirectChildValue(java.lang.String name)
getDirectChildValue in interface Typename - the name of the child
public Document getDOM()
getDOM in interface Typepublic java.lang.String getEdTypeUUID()
public Type getFirstNamedParent()
public java.lang.String getFullCaption()
Type
getFullCaption in interface TypeType.getFullCaption()public java.lang.String getFullCaption(int labelLength)
Type
getFullCaption in interface TypelabelLength - the length of each element description label that will be displayed
Type.getFullCaption(int)public GlobalDefinition getGlobalDefinition()
getGlobalDefinition in interface Typepublic int getGlobalEdTypeRefCount()
public short[] getId()
getId in interface Typepublic ListType getLastParentList()
public ListType getLastParentList(ListType listType)
public javax.swing.ImageIcon getMessageContextIcon()
public Type getMixedContent()
Type
getMixedContent in interface Typepublic java.lang.String getName()
Type
getName in interface QNamegetName in interface Typepublic java.lang.String getNamespace()
getNamespace in interface QNamegetNamespace in interface Typepublic Type getNextSibling()
Type
getNextSibling in interface TypeType.getNextSibling()public Type getParent()
getParent in interface Typepublic Type getParent(java.lang.String parentName)
getParent in interface TypeparentName - the name of the parent type
public Type getParentEditingTypeClone(ListType parentList,
Type choiceType)
public ListType getParentList()
getParentList in interface Typepublic java.lang.String getPrefixedXPathLocation()
Type
getPrefixedXPathLocation in interface Typepublic Type getPreviousSibling()
Type
getPreviousSibling in interface TypeType.getPreviousSibling()public java.beans.PropertyChangeSupport getPropertyChangeSupport()
getPropertyChangeSupport in interface Typepublic java.lang.String getQName()
Type
getQName in interface QNamegetQName in interface Typepublic java.lang.String getRefName()
getRefName in interface QNamepublic Type getRepresentedTableLayoutParent()
Type
getRepresentedTableLayoutParent in interface TypeType.getRepresentedTableLayoutParent()public Type getRepresentedTabParent(boolean checkCurrentType)
getRepresentedTabParent in interface Typepublic Type getRepresentedTreeNodeHolder()
Type
getRepresentedTreeNodeHolder in interface Typepublic Type getRepresentedTreeNodeParent()
getRepresentedTreeNodeParent in interface Typepublic javax.swing.ImageIcon getRepresentedTreeNodeParentIcon()
Type
getRepresentedTreeNodeParentIcon in interface TypeType.getRepresentedTreeNodeParentIcon()public java.lang.String getRepresentedTreeNodeParentIconName()
Type
getRepresentedTreeNodeParentIconName in interface TypeType.getRepresentedTreeNodeParentIconName()public SchemaNode getSchemaElement()
getSchemaElement in interface Typepublic SchemaType getSchemaType()
getSchemaType in interface Typepublic boolean getSerializableFlag()
getSerializableFlag in interface Typepublic java.lang.String getSerializationName()
getSerializationName in interface Typepublic java.lang.String getSerializationName2()
public java.lang.String getShortCaption()
Type
getShortCaption in interface TypeType.getShortCaption()public StyleDefinition getStyle()
getStyle in interface Typepublic Type getTemplate()
Type
getTemplate in interface Typepublic java.lang.String getTreeHierarchyContext()
Type
getTreeHierarchyContext in interface TypeType.getTreeHierarchyContext()public short getTypeClassification()
Type
getTypeClassification in interface Typepublic java.util.HashMap<java.lang.String,java.lang.String> getUIState()
public java.lang.String getUIState(java.lang.String id)
public java.lang.Object getUserObject()
getUserObject in interface Typepublic java.lang.String getVarName()
getVarName in interface Typepublic Type getViewContextType()
getViewContextType in interface Typepublic java.lang.String getVisualName()
Type
getVisualName in interface Typepublic java.lang.String getW3CXPathLocation(boolean prefixed)
Type
getW3CXPathLocation in interface Typeprefixed - true if the xpath should be generated with namespace prefixes.
public java.lang.String getXPathLocation()
getXPathLocation in interface Typepublic XUIDefinition getXUIDefinition()
getXUIDefinition in interface Typepublic XUIDefinition getXUIDefinition(boolean create)
Type
getXUIDefinition in interface Type
public XUIDefinition getXUIDefinition(boolean create,
boolean isReleasing)
public boolean hasChanged()
hasChanged in interface Typepublic boolean hasChoosenType()
Type
hasChoosenType in interface Type
public abstract boolean hasEmptyContent(boolean checkSerializeDefaults,
boolean checkDefaultValue)
public boolean hasEmptyContentParent(boolean checkSerializeDefaults,
boolean checkDefaultValue)
public boolean hasRecursionBeenBuilt()
Type
hasRecursionBeenBuilt in interface Typepublic boolean hasRepresentableTreeChildren()
hasRepresentableTreeChildren in interface Typepublic boolean hasUIDefinition()
Type
hasUIDefinition in interface TypeType.hasUIDefinition()public boolean hasUnChoosenChoiceParent()
Type
hasUnChoosenChoiceParent in interface Typepublic boolean hasUndefinedChildren()
hasUndefinedChildren in interface Typepublic boolean hasValidationError()
Type
hasValidationError in interface TypeType.hasValidationError()public boolean isAbstract()
isAbstract in interface Typepublic boolean isAnonymous()
isAnonymous in interface Typepublic boolean isAttribute()
isAttribute in interface Typepublic boolean isChoice()
isChoice in interface Typepublic boolean isComposite()
isComposite in interface Typepublic boolean isDerived()
isDerived in interface Typepublic boolean isDerivedFrom(Type type)
isDerivedFrom in interface Typetype - parent type
public boolean isDerivedFrom(Type type,
boolean firstIteration)
public boolean isDerivedFromEditingType()
isDerivedFromEditingType in interface Typepublic boolean isEditingType()
isEditingType in interface Typepublic boolean isEmpty()
isEmpty in interface Typepublic boolean isGlobal()
isGlobal in interface Typepublic boolean isGlobalEdType()
public boolean isIncluded()
Type
isIncluded in interface Typepublic boolean isInRepresentationTree(Type type)
type - to lookup in the representation tree
public boolean isKey()
Type
isKey in interface TypeType.isKey()public boolean isKeyContext()
Type
isKeyContext in interface TypeType.isKey()public boolean isKeyRef()
Type
isKeyRef in interface TypeType.isKeyRef()()
public boolean isKeyRemovable()
throws KeyRefException
KeyRefExceptionpublic boolean isList()
isList in interface Typepublic boolean isLocked()
Type
isLocked in interface Typepublic boolean isMandatoryAxis()
isMandatoryAxis in interface Typepublic boolean isMandatoryAxis(boolean checkForEmptyContent)
public boolean isNoneChoosen()
public boolean isRecursive()
Type
isRecursive in interface TypeType.isRecursive()public boolean isReleased()
isReleased in interface Typepublic boolean isRenderable()
Type
isRenderable in interface TypeType.isRenderable()public boolean isRepresentedAsHeader()
isRepresentedAsHeader in interface Typepublic boolean isRepresentedAsTab()
isRepresentedAsTab in interface Typepublic boolean isRepresentedAsTreeNode()
isRepresentedAsTreeNode in interface Typepublic boolean isRequired()
isRequired in interface Typepublic boolean isRoot()
isRoot in interface Typepublic boolean isSerializable()
Type
isSerializable in interface TypeType.isSerializable()public boolean isSerializable(boolean checkValue)
Type
isSerializable in interface TypecheckValue - true if the serialize process should check if the type's value is null
Type.isSerializable(boolean)
public boolean isSerializable(boolean checkValue,
boolean serDefaults)
isSerializable in interface Typepublic boolean isSimple()
isSimple in interface Typepublic boolean isUserInstanciated()
isUserInstanciated in interface Typepublic boolean isVirtual()
Type
isVirtual in interface Typepublic void jumpTo()
public abstract void markAsDirtyXPath()
markAsDirtyXPath in interface Typetype - possible holder of a recursive elementinstanceElement - to figure out deepness of the recursionpublic void markAsIncluded()
public void notifyChildsForDeletion(java.util.List childs,
boolean check)
throws KeyRefException
KeyRefExceptionpublic void notifyKeyRefChildsForCreation(Type createdChild)
public void notifyKeyRefChildsForDeletion(Type childToDelete,
boolean check)
throws KeyRefException
KeyRefExceptionpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerPropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
public void putClientProperty(java.lang.String key,
java.lang.Object object)
putClientProperty in interface TypeType.putClientProperty(java.lang.String, java.lang.Object)
public void putUIState(java.lang.String id,
java.lang.String param)
public void release()
Type
release in interface TypeType.release()
public boolean remove()
throws ListModificationException
remove in interface TypeListModificationException
public abstract void removeAll()
throws ListModificationException
removeAll in interface TypeListModificationException
public void removeAllKeyReferences()
throws ListModificationException
ListModificationException
public abstract boolean removeChild(Type child)
throws ListModificationException
removeChild in interface Typechild - a child type of this type
KeyRefException
ListModificationExceptionpublic void removeClientProperty(java.lang.String key)
removeClientProperty in interface Typepublic void removeHint()
public void removeMessage()
removeMessage in interface Typepublic void removeTreeNode(boolean shouldBeSerialized)
removeTreeNode in interface TypeshouldBeSerialized - defines if the content of this type will be serializedpublic java.lang.StringBuffer serialize()
serialize in interface Typepublic java.lang.StringBuffer serialize(boolean serializeEmptyContent)
serialize in interface Type
public void serialize(java.lang.StringBuffer sb,
int indent,
boolean writeName,
boolean recursive)
sb - a StringBuffer into which the subTree will be serializedindent - size of indentwriteName - true, if the name of the type should be serialized, false otherwise
public void serialize(java.lang.StringBuffer sb,
int indent,
boolean writeName,
boolean recursive,
boolean serializeEmptyContent)
serialize in interface Typesb - 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 serializedpublic void setAnonymous(boolean isAnonymous)
public void setApplicationRequired(boolean required)
setApplicationRequired in interface Typerequired - true if an user input is required for this typepublic void setBackground(java.awt.Color color)
setBackground in interface TypeComponent.setBackground(java.awt.Color)public void setChoiceEnabled(boolean isEnabled)
public void setChoosenType(java.lang.Object source,
Type type,
boolean isTemporary,
boolean includingData)
type - the type that is choosenisTemporary - true, if the choosen type acts temporarily as choosen type, false otherwiseincludingData - indicates if the choosen type came from a deepclone of an editing type
public void setChoosenType(java.lang.Object source,
Type type,
boolean isTemporary,
boolean includingData,
boolean isInitializing)
type - the type that is choosenisTemporary - true, if the choosen type acts temporarily as choosen type, false otherwiseincludingData - indicates if the choosen type came from a deepclone of an editing typeisInitializing - indicates if the setChoosenType is called from a lazybuild visualizer!public void setChoosenType(Type type)
setChoosenType in interface Typetype - the type that is currently choosen
public void setChoosenType(Type type,
boolean isTemporary)
setChoosenType in interface Typetype - the type that is currently choosenisTemporary - indicates if this selection is temporary
public void setCodeSetValues(java.lang.String url,
java.lang.String codeSetName,
java.lang.String[] values,
java.lang.String defaultSelection)
Type
setCodeSetValues in interface Typeurl - the url of the codeSet to be setcodeSetName - the name of the codeSet to be setvalues - the values of the codeSetdefaultSelection - the default selected codeType.setCodeSetValues(java.lang.String, java.lang.String, java.lang.String[], java.lang.String)
public void setCodeSetValues(java.lang.String url,
java.lang.String codeSetName,
java.lang.String[] values,
java.lang.String defaultSelection,
boolean syncWithCodeEnum,
boolean valueBasedSync)
public void setDirectChildValue(java.lang.String childName,
java.lang.String value)
Type
setDirectChildValue in interface TypechildName - the name of the childvalue - the value to set
public void setDirectChildValue(java.lang.String childName,
java.lang.String value,
boolean temporary)
setDirectChildValue in interface TypechildName - the name of the childvalue - the value to setpublic void setDOM(Document DOM)
setDOM in interface TypeDOM - a JAXFront document (DOM)public void setEditable(boolean editable)
Type
setEditable in interface TypeType.setEditable(boolean)public void setEnabled(boolean enabled)
setEnabled in interface Typeenabled - indicates if this type is enabledpublic void setForeground(java.awt.Color color)
setForeground in interface TypeComponent.setForeground(java.awt.Color)public void setGlobalEdType(boolean isGlobalEdType)
public void setGlobalEdTypeRefCount(int globalEdTypeRefCount)
public void setHasChanged(boolean changed)
public void setId(short[] id)
setId in interface Typeid - a unique IDpublic void setIsChoice(boolean isChoice)
public void setIsKeyContext(boolean isContext)
Type
setIsKeyContext in interface TypeisContext - true if this type is a key contextType.isKey()public void setLabelColor(java.awt.Color color)
setLabelColor in interface TypeVisualizer.setLabelColor(java.awt.Color)public void setLabelText(java.lang.String text)
setLabelText in interface TypeVisualizer.setLabelText(java.lang.String)public void setNoneChoosen(boolean noneChoosen)
public void setParent(Type parent)
setParent in interface Typeparent - the parent type of the current typepublic void setRecursionBuilt(boolean built)
public void setRenderable(boolean renderable)
Type
setRenderable in interface Typerenderable - false if the type should not be renderedType.setRenderable(boolean)public void setSchemaElement(SchemaNode element)
setSchemaElement in interface Typeelement - the meta information schema elementpublic void setSerializable(boolean isSerializable)
setSerializable in interface TypeisSerializable - true if this type should be serialized in the resulting W3C DOM, false otherwise
public void setSerializable(boolean isSerializable,
boolean checkForEmptyContent)
setSerializable in interface TypeisSerializable - true if this type should be serialized in the resulting W3C DOM, false otherwisecheckForEmptyContent - true if the serialize mechanism should check this type for empty contentpublic void setTemplate(Type template)
setTemplate in interface Typepublic void setTreeIcon(java.lang.String gifName)
setTreeIcon in interface TypegifName - name of the gif for the tree iconpublic void setUIDefinition(XUIDefinition uiDefinition)
setUIDefinition in interface TypeuiDefinition - a XUI definitionpublic void setUserInstanciated(boolean userTriggered)
setUserInstanciated in interface Typepublic void setUserObject(java.lang.Object object)
setUserObject in interface Typeobject - any user objectpublic void setVarName(java.lang.String varName)
public void setViewContextType(Type viewHolder)
setViewContextType in interface Typepublic void setVisible(boolean visible)
Type
setVisible in interface Typevisible - true if the component should be visibleType.setVisible(boolean)
public void setVisibleAndSerializable(boolean visible,
boolean isSerializable)
setVisibleAndSerializable in interface Typevisible - true if the component should be visible at runtimeisSerializable - true if the entered data should be serialized
public void showHint(java.lang.String text,
boolean isFormula,
java.awt.Color color,
boolean isBold)
text - a hint text or a formula expressionisFormula - true, if the hint text should be treated as formula expressioncolor - the color of the hint textisBold - true, if the hint text should be displayed boldpublic void showLabel(boolean visible)
showLabel in interface Typevisible - true if the label should be visible
public void showMessage(java.lang.String message,
java.lang.String classification,
boolean showDialog,
boolean needsUserAcceptance)
Type
showMessage in interface Typemessage - classification - showDialog - needsUserAcceptance - public java.lang.String toString()
toString in class java.lang.Objectpublic boolean unChoosenBranch()
unChoosenBranch in interface Typepublic void unmarkAsIncluded()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||