public class Field extends Node
Modifier and Type | Class and Description |
---|---|
static class |
Field.ExpectedLocation |
static class |
Field.Type |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
caption |
protected Field.ExpectedLocation |
expectedLocation |
protected int |
fractionDigits |
protected java.lang.String |
sampleValue |
protected int |
size |
protected Field.Type |
type |
Constructor and Description |
---|
Field()
Constructor for JAXB.
|
Field(Field.Type type,
int size,
int fractionDigits,
java.lang.String name,
java.lang.String caption,
Field.ExpectedLocation location) |
Field(Field other)
Constructor for flat cloning
|
Modifier and Type | Method and Description |
---|---|
Field |
deepClone()
Create a deep copy
|
static Field |
fromElement(org.w3c.dom.Element element)
Constructs a field from a "rtl:input-variable" element in a 4rp document
|
static Field |
fromRSTElement(org.w3c.dom.Element element)
Constructs a Field from a "Field" element in a rst schema document
|
java.lang.String |
getCaption() |
Field.ExpectedLocation |
getExpectedLocation() |
int |
getFractionDigits() |
java.lang.String |
getSampleValue() |
int |
getSize() |
Field.Type |
getType() |
boolean |
isNumeric() |
void |
setCaption(java.lang.String caption) |
void |
setSampleValue(java.lang.String sampleValue) |
org.w3c.dom.Element |
toElement(org.w3c.dom.Document document,
boolean deep) |
org.w3c.dom.Element |
toElement(org.w3c.dom.Document document,
boolean fgl,
Field.ExpectedLocation location) |
java.lang.String |
toString() |
java.lang.String |
toString(boolean deep,
int level)
Returns a
String that represents the value of this
Field . |
getDeepestDescendant, getIndex, getLastChild, getLinearlyPreceedingNode, getLinearlySucceedingNode, getName, getNextSibling, getNode, getNumberOfNodes, getParent, getPreviousSibling, isAncestor, setName, setParent
protected Field.Type type
protected int size
protected int fractionDigits
protected java.lang.String caption
protected Field.ExpectedLocation expectedLocation
protected java.lang.String sampleValue
public Field(Field.Type type, int size, int fractionDigits, java.lang.String name, java.lang.String caption, Field.ExpectedLocation location)
public Field()
public Field(Field other)
public Field.Type getType()
public int getSize()
public int getFractionDigits()
public java.lang.String getCaption()
public java.lang.String getSampleValue()
public void setSampleValue(java.lang.String sampleValue)
public Field.ExpectedLocation getExpectedLocation()
public boolean isNumeric()
public void setCaption(java.lang.String caption)
public org.w3c.dom.Element toElement(org.w3c.dom.Document document, boolean deep)
public static Field fromElement(org.w3c.dom.Element element) throws DesignFileException
DesignFileException
public org.w3c.dom.Element toElement(org.w3c.dom.Document document, boolean fgl, Field.ExpectedLocation location)
public static Field fromRSTElement(org.w3c.dom.Element element) throws DesignFileException
DesignFileException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean deep, int level)
String
that represents the value of this
Field
.