public interface Type
Modifier and Type | Interface and Description |
---|---|
static class |
Type.INCLUDE_TYPE |
Modifier and Type | Field and Description |
---|---|
static short |
ComplexGroup |
static short |
ComplexGroupList |
static short |
CompositeType |
static short |
DummyType |
static short |
EmptyType |
static short |
GroupType |
static short |
ListType |
static short |
NONE |
static short |
SimpleGroup |
static short |
SimpleGroupList |
static short |
SimpleType |
static short |
SimpleTypeList |
static short |
VirtualType |
Modifier and Type | Method and Description |
---|---|
void |
addNote(FieldNote fn) |
void |
addProcessingInstruction(java.lang.String target,
java.lang.String name,
java.lang.String value) |
void |
addTreeNode(boolean shouldBeSerialized)
Adds this type to the tree.
|
boolean |
addViewContextType(Type context,
boolean isTableViewContext) |
void |
bind(Document DOM,
org.w3c.dom.Element element)
Binds the values on a W3C element to the underlying JAXFront type.
|
void |
bind(Document DOM,
org.w3c.dom.Element element,
BindConfiguration params,
boolean isSameLevel)
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.
|
void |
bind(java.lang.Object trigger,
Type type,
BindConfiguration params)
Binds the values of an JAXFront type to myself.
|
void |
bind(Type type)
Binds the values of an JAXFront type 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.
|
java.lang.String |
getAbsoluteXPathLocation() |
java.util.List<Type> |
getAllRepresentableTypes() |
java.util.List<SimpleType> |
getAttributes()
Returns all its attributes.
|
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 |
getChoosenType()
Gets the choosen type if this type is a choice element.
|
java.util.Map |
getClientProperties() |
java.lang.Object |
getClientProperty(java.lang.String key)
Gets a client property for this type.
|
java.util.List<Type> |
getDerivedTypes()
Gets a list of all derived types if this type is an abstract type.
|
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
|
Type |
getDirectChild(java.lang.String name,
java.lang.String namespace,
boolean ignoreNS) |
java.util.List<Type> |
getDirectChildren()
Gets a list of all child types.
|
java.util.List<Type> |
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 |
getDirectChildValue(java.lang.String name)
Gets the value of a child type with a given name.
|
java.lang.String |
getDisplayValue()
Returns this type as a String representation.
|
Document |
getDOM()
Gets the current JAXFront document (DOM).
|
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() |
java.util.List<Type> |
getGlobalTypes() |
java.util.List<java.lang.String> |
getGlobalTypesXPaths() |
Type.INCLUDE_TYPE |
getIncludeType() |
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.
|
java.util.List<FieldNote> |
getNotes() |
java.beans.PropertyChangeSupport |
getOwnPropertyChangeSupport()
Gets the PropertyChangeSupport helper instance for this 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.
|
ListType<Type> |
getParentList()
Gets the parent list type of the current type.
|
Type |
getParentNotList() |
java.lang.String |
getPlainValue()
Gets the value of this type without resolving defaults!.
|
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.lang.String |
getProcessingInstruction(java.lang.String target,
java.lang.String name) |
java.beans.PropertyChangeSupport |
getPropertyChangeSupport()
Gets the PropertyChangeSupport helper instance for this DOM.
|
java.lang.String |
getQName()
Gets the tag name including namespace prefix.
|
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.
|
Type |
getRootType() |
SchemaNode |
getSchemaElement()
Gets the meta information schema element.
|
SchemaType |
getSchemaType() |
boolean |
getSerializableFlag() |
java.lang.String |
getSerializationName() |
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() |
StyleDefinition |
getStyle(Type context) |
Type[] |
getTableViewContextTypes() |
Type |
getTemplate()
Returns true if this type has changed.
|
Type |
getTextNode() |
java.lang.String |
getTreeHierarchyContext()
Returns the treeEntry hierarchy of the current type as coma separated String (context).
|
short[] |
getTreeID()
Gets a unique ID within the current JAXFront documennt (DOM) expressing axis position.
|
short |
getTypeClassification()
Returns the type classification.
|
long |
getTypeID() |
long |
getUID()
Generates a VM wide uniqe ID for a Type instance.
|
java.lang.Object |
getUserObject()
Gets any user object set to this type.
|
java.lang.String |
getValue()
Gets the value of this type.
|
java.lang.String |
getVarName() |
Type |
getViewContextType() |
Type[] |
getViewContextTypes() |
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(Type context) |
Type[] |
getXUIViewContexts() |
boolean |
hasAttributes() |
boolean |
hasChanged() |
boolean |
hasChoosenType()
Returns true if this type has a Choosen type.
|
boolean |
hasClientProperties() |
boolean |
hasFieldNotes() |
int |
hashCode() |
boolean |
hasOwnPropertyChangeSupport() |
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 |
hasTextNode() |
boolean |
hasUIDefinition()
Returns true if the uiDefinition is already set.
|
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 |
isComplexGroupListType() |
boolean |
isComplexGroupType() |
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 |
isDerivedFromEditingType()
Returns true if this type is derived from an editing type.
|
boolean |
isDummyType() |
boolean |
isEditingType()
Returns true if my parent is a list and this type is a template for further addings.
|
boolean |
isElementBound() |
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 |
isILB() |
boolean |
isInChoosenAxis()
Returns true if this type is in choosen axis, false otherwise
|
boolean |
isIncluded()
Returns true if this type was included from an included xui file.
|
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 |
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 checkContent) |
boolean |
isReachable() |
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 serDefaults,
boolean internal) |
boolean |
isSerializable(boolean checkValue,
boolean serDefaults,
boolean internal) |
boolean |
isSimple()
Returns true if this is a leaf in the tree.
|
boolean |
isSimpleContent() |
boolean |
isSimpleGroupListType() |
boolean |
isSimpleGroupType() |
boolean |
isSimpleListType() |
boolean |
isTextNode() |
boolean |
isTransient() |
boolean |
isUIDefinied()
Returns true if the uiDefinition is set or it has a global ui definition.
|
boolean |
isUserInstanciated() |
boolean |
isVirtualType()
Returns true if this type is implementing an virtual type.
|
boolean |
isVisualizing()
Returns true if this type is in build process within typevisualizerfactory.
|
void |
markAsDirtyXPath()
Marks an xpath as dirty.
|
void |
putClientProperty(java.lang.String key,
java.lang.Object object) |
void |
release()
Release all allocated resources for this type.
|
boolean |
remove()
Removes this type from the JAXFront DOM.
|
boolean |
remove(EventSource src) |
void |
removeAll()
Removes all types from this type.
|
boolean |
removeChild(EventSource src,
Type child) |
boolean |
removeChild(Type child)
Removes a child from the JAXFront DOM.
|
void |
removeClientProperty(java.lang.String key) |
void |
removeMessage()
Removes all validation error messages for this type.
|
void |
removeProcessingInstruction(java.lang.String target,
java.lang.String name) |
void |
removeTreeNode(boolean shouldBeSerialized)
Removes this type from the tree.
|
boolean |
removeViewContextType(Type holder,
boolean isTableViewContext) |
void |
resetStyleModifier() |
java.lang.StringBuffer |
serialize()
Serializes the current subTree to a StringBuffer
|
java.lang.StringBuffer |
serialize(boolean internal)
Serializes the current subTree to a StringBuffer
|
java.lang.StringBuffer |
serialize(boolean serializeEmptyContent,
boolean internal)
Serializes the current subTree to a StringBuffer
|
void |
serialize(java.lang.StringBuffer sb,
SerializationConfiguration serPar)
Serializes the current subTree to a StringBuffer
|
void |
setApplicationRequired(boolean required)
Sets if an user input is required for this type or not (overwrites xml schema cardinality).
|
void |
setApplicationRequired(boolean required,
boolean setAxisMandatory)
Sets if an user input is required for this type or not (overwrites xml schema cardinality).
|
void |
setBackground(java.awt.Color color) |
Type |
setChoosenType(java.lang.String choiceName,
java.lang.String nameSpace) |
void |
setChoosenType(Type choosenType)
Sets the choosen type if this type is a choice.
|
void |
setChoosenType(Type choosenType,
boolean temporary)
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 useCodesetLabels)
Sets the codeSet values for the current type.
|
boolean |
setDirectChildValue(java.lang.String childName,
java.lang.String value)
Sets the value of a child type of this type.
|
boolean |
setDirectChildValue(java.lang.String childName,
java.lang.String value,
boolean temporary) |
void |
setDOM(Document DOM)
Sets a current JAXFront document (DOM).
|
void |
setEditable(boolean editable)
Sets the component editable or not editable.
|
void |
setEditable(boolean editable,
boolean fireChange) |
void |
setEnabled(boolean enabled)
Sets the component enabled (active) or disabled (inactive).
|
void |
setForeground(java.awt.Color color) |
boolean |
setILB(boolean ilb) |
void |
setIsEditingType(boolean isEditingType) |
void |
setIsKeyContext(boolean isContext)
Set true if this type is a key context!
|
void |
setIsVisualizing(boolean isVisualizing) |
void |
setLabelColor(java.awt.Color color) |
void |
setLabelText(java.lang.String text) |
void |
setParent(Type parent)
Gets the parent type of the current type.
|
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 isDefined)
Sets if this type should be serialized in the resulting W3C DOM.
|
void |
setSerializable(boolean isDefined,
boolean checkForEmptyContent)
Sets if this type should be serialized in the resulting W3C DOM which depends on the content of the type.
|
void |
setSerializable(boolean isDefined,
boolean checkForEmptyContent,
boolean fireEvent) |
void |
setTemplate(Type template) |
void |
setTransient(boolean trans) |
void |
setTreeIcon(java.lang.String gifName)
Set the tree icon for this type.
|
void |
setTreeID(short[] id)
Sets a unique ID within the current JAXFront documennt (DOM) expressing axis position.
|
void |
setTypeID(long id) |
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 |
setValue(java.lang.String newValue) |
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 and defines if the data will be serialized or not.
|
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.Boolean |
showRequiredFlag(boolean ignoreMandatoryAxis) |
void |
traverse(TypeTraverser typeTraverser) |
boolean |
useNullContextView() |
void |
visit(TypeTreeVisitor visitor) |
static final short NONE
static final short SimpleType
static final short SimpleTypeList
static final short SimpleGroup
static final short SimpleGroupList
static final short ComplexGroup
static final short ComplexGroupList
static final short VirtualType
static final short EmptyType
static final short CompositeType
static final short ListType
static final short GroupType
static final short DummyType
boolean isSimpleListType()
boolean isSimpleGroupType()
boolean isSimpleGroupListType()
boolean isComplexGroupType()
boolean isComplexGroupListType()
boolean isDummyType()
void bind(Document DOM, org.w3c.dom.Element element)
DOM
- the current document to which this type belongselement
- the element to bindint hashCode()
hashCode
in class java.lang.Object
long getUID()
void bind(org.w3c.dom.Element instanceElement)
element
- the element to bindvoid bind(Document DOM, org.w3c.dom.Element element, BindConfiguration params, boolean isSameLevel)
DOM
- the current document to which this type belongselement
- the element to bindparams
- TODOisSameLevel
- TODObindOnlyAvailable
- indicates if the not available elements will be removed from type treesoft
- TODOvoid bind(Type type)
DOM
- the current document to which this type belongstype
- the type to bind tovoid bind(java.lang.Object trigger, Type type, BindConfiguration params)
trigger
- trigger object e.g. Clipboard,Button used to identify user triggered actionstype
- the type to bind toparams
- TODODOM
- the current document to which this type belongsType deepClone(Document dom, boolean cloneChoices, boolean includingData) throws java.lang.CloneNotSupportedException
dom
- the current dom to which this type belongsincludingData
- indicates if all binded data should be copied as well (default is false)java.lang.CloneNotSupportedException
Type deepClone(Document dom, boolean cloneChoices, boolean includingData, boolean includeEditingType, SchemaNode schemaNode, org.w3c.dom.Element element) throws java.lang.CloneNotSupportedException
dom
- the current dom to which this type belongsincludingData
- indicates if all binded data should be copied as well (default is false)java.lang.CloneNotSupportedException
Type getDirectChild(java.lang.String name)
name
- name of the childType getDirectChild(java.lang.String name, java.lang.String namespace)
name
- name of the childnamespace
- namespace of the childType getDirectChild(java.lang.String name, java.lang.String namespace, boolean ignoreNS)
Type getChild(java.lang.String name)
name
- name of the childType getChild(java.lang.String name, java.lang.String namespace)
name
- name of the childjava.util.List<Type> getDirectChildren()
int getDirectChildrenSize()
java.util.List<Type> getDirectChildren(java.lang.String name)
name
- the name of the child(s)java.lang.String getDirectChildValue(java.lang.String name)
name
- the name of the childType getChoosenType()
java.lang.Object getClientProperty(java.lang.String key)
object
- any user objectjava.util.Map getClientProperties()
boolean hasClientProperties()
Type.INCLUDE_TYPE getIncludeType()
java.util.List<Type> getDerivedTypes()
Document getDOM()
short[] getTreeID()
java.lang.String getQName()
java.lang.String getNamespace()
Type getParent()
Type getParentNotList()
Type getParent(java.lang.String parentName)
parentName
- the name of the parent typeListType<Type> getParentList()
java.beans.PropertyChangeSupport getPropertyChangeSupport()
java.beans.PropertyChangeSupport getOwnPropertyChangeSupport()
Type getRepresentedTabParent(boolean checkCurrentType)
Type getRepresentedTreeNodeParent()
Type getRootType()
Type getRepresentedTreeNodeHolder()
SchemaNode getSchemaElement()
XUIDefinition getXUIDefinition()
XUIDefinition getXUIDefinition(boolean create)
lazyInitialization
- should be lazy initialized if not existsXUIDefinition getXUIDefinition(Type context)
java.lang.Object getUserObject()
java.lang.String getPrefixedXPathLocation()
java.lang.String getAbsoluteXPathLocation()
java.lang.String getXPathLocation()
java.lang.String getW3CXPathLocation(boolean prefixed)
prefixed
- true if the xpath should be generated with namespace prefixes.boolean hasRepresentableTreeChildren()
boolean isInChoosenAxis()
boolean hasChoosenType()
boolean isAbstract()
boolean isAnonymous()
boolean isAttribute()
boolean isChoice()
boolean isComposite()
boolean isReachable()
boolean isSerializable()
boolean isSerializable(boolean serDefaults, boolean internal)
boolean isSerializable(boolean checkValue, boolean serDefaults, boolean internal)
boolean isDerived()
boolean isDerivedFrom(Type type)
type
- parent typeboolean isEditingType()
boolean isEmpty()
boolean isList()
boolean isLocked()
boolean isRepresentedAsHeader()
boolean isRepresentedAsTab()
Type getRepresentedTableLayoutParent()
boolean isRepresentedAsTreeNode()
boolean isRequired()
boolean isRoot()
boolean isSimple()
boolean isVirtualType()
boolean isVisualizing()
void setIsVisualizing(boolean isVisualizing)
void putClientProperty(java.lang.String key, java.lang.Object object)
void removeClientProperty(java.lang.String key)
void release()
boolean remove() throws ListModificationException
ListModificationException
boolean remove(EventSource src) throws ListModificationException
ListModificationException
void removeAll() throws ListModificationException
ListModificationException
boolean removeChild(Type child) throws ListModificationException
child
- a child type of this typeListModificationException
boolean removeChild(EventSource src, Type child) throws ListModificationException
ListModificationException
java.lang.StringBuffer serialize()
java.lang.StringBuffer serialize(boolean internal)
java.lang.StringBuffer serialize(boolean serializeEmptyContent, boolean internal)
void serialize(java.lang.StringBuffer sb, SerializationConfiguration serPar)
sb
- a StringBuffer into which the subTree will be serializedserPar
- TODOboolean setDirectChildValue(java.lang.String childName, java.lang.String value)
childName
- the name of the childvalue
- the value to setboolean setDirectChildValue(java.lang.String childName, java.lang.String value, boolean temporary)
void setChoosenType(Type choosenType)
choosenType
- the type that is currently choosenvoid setChoosenType(Type choosenType, boolean temporary)
choosenType
- the type that is choosentemporary
- true, if the choosen type acts temporarily as choosen type, false otherwiseType setChoosenType(java.lang.String choiceName, java.lang.String nameSpace)
void setDOM(Document DOM)
DOM
- a JAXFront document (DOM)void setTreeID(short[] id)
id
- a unique IDvoid setSerializable(boolean isDefined)
isDefined
- true if this type should be serialized in the resulting W3C DOM, false otherwisevoid setSerializable(boolean isDefined, boolean checkForEmptyContent)
isDefined
- true if this type should be serialized in the resulting W3C DOM, false otherwisecheckForEmptyContent
- true if the content of this type should be checked for empty contentvoid setSerializable(boolean isDefined, boolean checkForEmptyContent, boolean fireEvent)
void setParent(Type parent)
parent
- the parent type of the current typevoid setSchemaElement(SchemaNode element)
element
- the meta information schema elementvoid setUIDefinition(XUIDefinition uiDefinition)
uiDefinition
- a XUI definitionvoid setUserObject(java.lang.Object object)
object
- any user objectjava.lang.String getDisplayValue()
java.lang.String getValue()
java.lang.String getPlainValue()
short getTypeClassification()
boolean hasValidationError()
boolean hasUIDefinition()
boolean isUIDefinied()
boolean isKey()
boolean isKeyRef()
boolean isKeyContext()
void setIsKeyContext(boolean isContext)
isContext
- true if this type is a key contextvoid setApplicationRequired(boolean required)
required
- true if an user input is required for this typevoid setApplicationRequired(boolean required, boolean setAxisMandatory)
required
- true if an user input is required for this typesetAxisMandatory
- sets the parents required if they are not requiredvoid setCodeSetValues(java.lang.String url, java.lang.String codeSetName, java.lang.String[] values, java.lang.String defaultSelection)
url
- the url of the codeSet to be setcodeSetName
- the name of the codeSet to be setvalues
- the values of the codeSetdefaultSelection
- the default selected codevoid setCodeSetValues(java.lang.String url, java.lang.String codeSetName, java.lang.String[] values, java.lang.String defaultSelection, boolean useCodesetLabels)
url
- the url of the codeSet to be setcodeSetName
- the name of the codeSet to be setvalues
- the values of the codeSetdefaultSelection
- the default selected codeuseCodesetLabels
- defines if the label should be replaced with the codeSet label (default, true)void setBackground(java.awt.Color color)
Component.setBackground(java.awt.Color)
void setForeground(java.awt.Color color)
Component.setForeground(java.awt.Color)
void setLabelColor(java.awt.Color color)
Visualizer.setLabelColor(java.awt.Color)
void setLabelText(java.lang.String text)
void setVisible(boolean visible)
visible
- true if the component should be visibleboolean hasChanged()
Type getTemplate()
void setTemplate(Type template)
void setRenderable(boolean renderable)
renderable
- false if the type should not be renderedboolean isRenderable()
void setEditable(boolean editable)
true
- if the component should be editablevoid setEditable(boolean editable, boolean fireChange)
void setEnabled(boolean enabled)
true
- if the component should be enabledvoid setVisibleAndSerializable(boolean visible, boolean isSerializable)
visible
- true if the component should be visibleisSerializable
- true if the entered data should be serializedvoid showLabel(boolean visible)
visible
- true if the label should be visiblejava.lang.Boolean showRequiredFlag(boolean ignoreMandatoryAxis)
boolean isRecursive()
java.lang.String getTreeHierarchyContext()
java.lang.String getShortCaption()
java.lang.String getFullCaption()
getFullCaption(int)
java.lang.String getFullCaption(int labelLength)
labelLength
- the length of each element description label that will be displayedjavax.swing.ImageIcon getRepresentedTreeNodeParentIcon()
java.lang.String getRepresentedTreeNodeParentIconName()
Type getNextSibling()
Type getPreviousSibling()
boolean isDerivedFromEditingType()
boolean isIncluded()
Type getMixedContent()
java.lang.String getVisualName()
void markAsDirtyXPath()
boolean hasRecursionBeenBuilt()
boolean isGlobal()
void removeTreeNode(boolean shouldBeSerialized)
shouldBeSerialized
- defines if the content of this type will be serializedvoid addTreeNode(boolean shouldBeSerialized)
shouldBeSerialized
- defines if this type should be serializedboolean hasUndefinedChildren()
void removeMessage()
void showMessage(java.lang.String message, java.lang.String classification, boolean showDialog, boolean needsUserAcceptance)
message
- message textclassification
- category (info, warning,...)showDialog
- defines if message should be shown as dialogneedsUserAcceptance
- defines if user needs to accept message or notvoid setTreeIcon(java.lang.String gifName)
gifName
- name of the gif for the tree iconjava.lang.String getName()
java.lang.String getSerializationName()
boolean isUserInstanciated()
void setUserInstanciated(boolean userTriggered)
boolean isReleased()
SchemaType getSchemaType()
StyleDefinition getStyle()
StyleDefinition getStyle(Type context)
boolean isMandatoryAxis()
boolean isMandatoryAxis(boolean checkContent)
boolean getSerializableFlag()
GlobalDefinition getGlobalDefinition()
java.lang.String getVarName()
java.util.List<Type> getGlobalTypes()
java.util.List<java.lang.String> getGlobalTypesXPaths()
void setIsEditingType(boolean isEditingType)
Type[] getXUIViewContexts()
Type getViewContextType()
Type[] getViewContextTypes()
Type[] getTableViewContextTypes()
boolean addViewContextType(Type context, boolean isTableViewContext)
boolean useNullContextView()
boolean removeViewContextType(Type holder, boolean isTableViewContext)
boolean isSimpleContent()
long getTypeID()
void setTypeID(long id)
boolean hasOwnPropertyChangeSupport()
java.util.List<Type> getAllRepresentableTypes()
void visit(TypeTreeVisitor visitor)
boolean isTransient()
void setTransient(boolean trans)
void resetStyleModifier()
Type getTextNode()
java.util.List<FieldNote> getNotes()
void addNote(FieldNote fn)
boolean isILB()
boolean setILB(boolean ilb)
boolean hasFieldNotes()
void setValue(java.lang.String newValue)
boolean isTextNode()
boolean isElementBound()
boolean hasAttributes()
void addProcessingInstruction(java.lang.String target, java.lang.String name, java.lang.String value)
java.lang.String getProcessingInstruction(java.lang.String target, java.lang.String name)
void removeProcessingInstruction(java.lang.String target, java.lang.String name)
java.util.List<SimpleType> getAttributes()
boolean hasTextNode()
void traverse(TypeTraverser typeTraverser)