public class XFTReferenceField extends XFTField
SequenceComparator
Constructor and Description |
---|
XFTReferenceField(Node node,
XFTSchema s)
If the node has a defined type, then the type is used to find the referenced element.
|
Modifier and Type | Method and Description |
---|---|
XFTField |
clone(XFTElement e,
boolean accessLayers) |
static XFTReferenceField |
GetEmptyRef()
Get an empty reference (onDelete defaults to cascade)
|
String |
getId() |
String |
getName() |
XFTElement |
getRefElement()
Gets the refElement using the XMLType
|
XMLType |
getXMLType()
Gets the XMLType for the referenced element
|
boolean |
isChildXMLNode()
Whether the referenced element will have its own XML DOM Node.
|
boolean |
isCreatedChild()
if this field references a created Child Element then true, else false.
|
boolean |
isInLineRepeaterElement()
Whether the referenced element is a repeating basic data type.
|
void |
setChildXMLNode(boolean b)
Whether the referenced element will have its own XML DOM Node.
|
void |
setCreatedChild(boolean b)
if this field references a created Child Element then true, else false.
|
void |
setInLineRepeaterElement(boolean b)
Whether the referenced element is a repeating basic data type.
|
void |
setName(String string) |
void |
setProperties(Node node,
XFTSchema s)
Sets the field's properties according the attributes of the given field.
|
void |
setXMLType(XMLType type)
Gets the XMLType for the referenced element
|
String |
toString() |
String |
toString(String header) |
Document |
toXML() |
Node |
toXML(Document doc) |
addChildField, AddField, AddField, displayAttribute, getBaseCol, getBaseElement, getChildFields, getDescription, getDisplayName, GetElementCount, getExpose, GetFields, getFinalSqlName, getFixed, getFullName, getMaxOccurs, getMinOccurs, getPreventLoop, GetRefName, getRelation, getRequired, getRule, getSequence, getSize, getSortedFields, getSqlField, getUnique, getUniqueComposite, getUse, getWebAppField, getXmlDisplay, getXmlOnly, HandleComplexType, hasAttributes, hasBase, hasChildren, isAttribute, isExtension, isFilter, isLocalMap, isOnlyRoot, isPossibleLoop, IsRefOnly, setAttribute, setBaseCol, setBaseElement, setChildFields, setDescription, setDisplayName, setExpose, setExtension, setFilter, setFinalSqlName, setFixed, setFullName, setLocalMap, setMaxOccurs, setMinOccurs, setOnDelete, setOnlyRoot, setPossibleLoop, setPreventLoop, setPrimaryKey, setRelation, setRequired, setRule, setSequence, setSize, setSqlField, setUnique, setUniqueComposite, setUse, setWebAppField, setXmlDisplay, setXmlOnly
getAbsoluteParent, getParent, getParentElement, hasParent, setParent
public XFTReferenceField(Node node, XFTSchema s)
node
- Node to use for Reference Field creations
- parent schemapublic void setProperties(Node node, XFTSchema s)
node
- s
- public XFTElement getRefElement() throws ElementNotFoundException, XFTInitException
ElementNotFoundException
XFTInitException
public Document toXML()
public static XFTReferenceField GetEmptyRef()
public XMLType getXMLType()
getXMLType
in class XFTField
public void setXMLType(XMLType type)
setXMLType
in class XFTField
type
- public void setName(String string)
public boolean isChildXMLNode()
public void setChildXMLNode(boolean b)
b
- public boolean isInLineRepeaterElement()
public void setInLineRepeaterElement(boolean b)
b
- public boolean isCreatedChild()
public void setCreatedChild(boolean b)
b
- public XFTField clone(XFTElement e, boolean accessLayers)
public String getId()
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.