public class XFTElement extends XFTNode
Modifier and Type | Field and Description |
---|---|
static Comparator |
SequenceComparator |
static String |
XML_TAG_PREFIX |
Constructor and Description |
---|
XFTElement(Node node,
String prefix,
XFTSchema s)
Constructs and populates a XFTElement based on the information stored in the XML DOM Node.
|
XFTElement(Node node,
String prefix,
XFTSchema s,
String header)
Constructs and populates a XFTElement based on the information stored in the XML DOM Node.
|
XFTElement(XFTSchema s)
Creates an empty XFTElement for the given XFTSchema.
|
Modifier and Type | Method and Description |
---|---|
void |
addField(XFTField xf)
puts the XFTField into the hashtable of fields and sets this element as the Field's parent.
|
boolean |
canBeRoot()
If this element can be a root element and contains a hidden (base column) reference.
|
XFTElement |
clone(XFTElement e,
boolean history) |
void |
fillDescription(NamedNodeMap nnm)
sets code, briefDescription and fullDescription from nnm attributes.
|
String |
getAddin() |
String |
getBriefDescription() |
String |
getCode() |
XFTDataModel |
getDataModel()
parent XFTDataModel
|
List<String> |
getDisplayIdentifiers() |
XMLType |
getExtensionType()
If the element is an extension of another element, then its extension is true and the
extended elements XMLType is stored in the exstensionType element.
|
Hashtable |
getFields()
key = XFTField.getName(), value = XFTField
|
String |
getFullDescription() |
XFTMetaElement |
getMetaElement()
Get Meta Element which describes this item.
|
String |
getName() |
XFTSchema |
getSchema() |
String |
getSchemaPrefix()
XMLNS property of the parent schema.
|
int |
getSequence()
sequence relative to other elements in the parent schema.
|
ArrayList |
getSortedFields()
return an ArrayList of the XFTFields in order by sequence
|
XFTSqlElement |
getSqlElement()
Object which stores specialized info about the element.
|
XMLType |
getType()
schema target namespace prefix + local xml element name.
|
XFTWebAppElement |
getWebAppElement()
Object which stores specialized info about the element.
|
String |
getXsDescription() |
boolean |
hasBase() |
boolean |
hasExtensionElement() |
boolean |
hasQurantineSetting() |
void |
initializeExtensionField()
Creates a XFTReferenceField to the XFT_Elements element (if this element is extended).
|
boolean |
isAbstract() |
boolean |
isANoChildElement()
If this element does not correspond to a unique XML node then its isANoChildElement will be true.
|
boolean |
isAutoActivate() |
boolean |
isCreatedChild()
If this element was not defined at the root level of the schema, but was instead defined as a child
of another element (usually with maxOccurs >1), then its createdChild property will be true.
|
boolean |
isExtended()
If the element is an extension of another element, then its extension is true and the
extended elements XMLType is stored in the exstensionType element.
|
boolean |
isExtension()
If the element is an extension of another element, then its extension is true and the
extended elements XMLType is stored in the exstensionType element.
|
boolean |
isIgnoreWarnings() |
boolean |
isMatchByValues() |
boolean |
isPreLoad() |
boolean |
isQuarantine() |
boolean |
isQuarantine(boolean defaultValue) |
boolean |
isRootElement() |
boolean |
isSkipSQL() |
void |
setAbstract(boolean isAbstract) |
void |
setAddin(String addin) |
void |
setANoChildElement(boolean b)
If this element does not correspond to a unique XML node then its isANoChildElement will be true.
|
void |
setBriefDescription(String string) |
void |
setCode(String string) |
void |
setCreatedChild(boolean b)
If this element was not defined at the root level of the schema, but was instead defined as a child
of another element (usually with maxOccurs >1), then its createdChild property will be true.
|
void |
setDisplayIdentifiers(List<String> di) |
void |
setExtended(boolean b)
If the element is an extension of another element, then its extension is true and the
extended elements XMLType is stored in the exstensionType element.
|
void |
setExtension(boolean b)
If the element is an extension of another element, then its extension is true and the
extended elements XMLType is stored in the exstensionType element.
|
void |
setExtensionType(XMLType type)
If the element is an extension of another element, then its extension is true and the
extended elements XMLType is stored in the exstensionType element.
|
void |
setFullDescription(String string) |
void |
setHasBase(boolean hasBase) |
void |
setHasExtensionElement(boolean b) |
void |
setIdMethod(String s)
native: auto increment, none: non-auto increment
|
void |
setIgnoreWarnings(boolean ignoreWarnings) |
void |
setMatchByValues(boolean matchByValues) |
void |
setMetaElement(XFTMetaElement element) |
void |
setName(String string) |
void |
setPreLoad(boolean preLoad) |
void |
setQuarantineSetting(boolean quarantine) |
void |
setSequence(int i) |
void |
setSkipSQL(boolean b) |
void |
setSkipSQL(String s) |
void |
setSqlElement(XFTSqlElement element) |
void |
setStoreHistory(boolean storeHistory) |
void |
setWebAppElement(XFTWebAppElement element) |
void |
setXsDescription(String xsDescription) |
boolean |
storeHistory() |
String |
toString() |
String |
toString(String header) |
Document |
toXML() |
Node |
toXML(Document doc) |
getAbsoluteParent, getParent, getParentElement, hasParent, setParent
public static final String XML_TAG_PREFIX
public static final Comparator SequenceComparator
public XFTElement(XFTSchema s)
s
- public XFTElement(Node node, String prefix, XFTSchema s)
node
- XML DOM Nodeprefix
- XMLNS prefix of standard data typess
- XFTSchema (parent)public XFTElement(Node node, String prefix, XFTSchema s, String header)
node
- XML DOM Nodeprefix
- XMLNS prefix of standard data typess
- XFTSchema (parent)public XMLType getType()
public void fillDescription(NamedNodeMap nnm)
nnm
- public String getBriefDescription()
public String getCode()
public String getFullDescription()
public String getName()
public void setBriefDescription(String string)
string
- public void setCode(String string)
string
- public void setFullDescription(String string)
string
- public void setName(String string)
string
- public Hashtable getFields()
public void addField(XFTField xf)
xf
- public void setIdMethod(String s)
s
- public Document toXML()
public XFTSqlElement getSqlElement()
public XFTWebAppElement getWebAppElement()
public void setSqlElement(XFTSqlElement element)
element
- public void setWebAppElement(XFTWebAppElement element)
element
- public int getSequence()
public void setSequence(int i)
i
- public ArrayList getSortedFields()
public boolean isCreatedChild()
public void setCreatedChild(boolean b)
b
- public String getSchemaPrefix()
public XFTSchema getSchema()
public XFTDataModel getDataModel()
public boolean isANoChildElement()
public void setANoChildElement(boolean b)
b
- public boolean isExtension()
public XMLType getExtensionType()
public void setExtension(boolean b)
b
- public void setExtensionType(XMLType type)
type
- public boolean isExtended()
public void setExtended(boolean b)
b
- public void initializeExtensionField()
public XFTMetaElement getMetaElement()
public void setMetaElement(XFTMetaElement element)
element
- public boolean hasExtensionElement()
public void setHasExtensionElement(boolean b)
b
- public void setSkipSQL(boolean b)
b
- public void setSkipSQL(String s)
s
- public boolean isSkipSQL()
public String getAddin()
public void setAddin(String addin)
addin
- The addin to set.public List<String> getDisplayIdentifiers()
public void setDisplayIdentifiers(List<String> di)
displayIdentifiers
- The displayIdentifiers to set.public XFTElement clone(XFTElement e, boolean history)
public boolean isIgnoreWarnings()
public void setIgnoreWarnings(boolean ignoreWarnings)
ignoreWarnings
- The ignoreWarnings to set.public boolean isQuarantine()
public boolean isQuarantine(boolean defaultValue)
public void setQuarantineSetting(boolean quarantine)
quarantine
- The quarantine to set.public boolean isAutoActivate()
public boolean hasQurantineSetting()
public boolean isPreLoad()
public void setPreLoad(boolean preLoad)
preLoad
- The preLoad to set.public boolean isRootElement()
public boolean canBeRoot()
public boolean hasBase()
public void setHasBase(boolean hasBase)
hasBase
- The hasBase to set.public boolean isMatchByValues()
public void setMatchByValues(boolean matchByValues)
matchByValues
- The matchByValues to set.public boolean storeHistory()
public void setStoreHistory(boolean storeHistory)
storeHistory
- The storeHistory to set.public boolean isAbstract()
public void setAbstract(boolean isAbstract)
isAbstract
- the isAbstract to setpublic String getXsDescription()
public void setXsDescription(String xsDescription)
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.