xmltool.datastructure
Class Elem
java.lang.Object
|
+--xmltool.datastructure.Elem
- public class Elem
- extends java.lang.Object
- implements java.lang.Cloneable
Definition of an element of a DTD, and its properties
|
Constructor Summary |
Elem()
Default constructor for this class |
Elem(java.lang.String elementName,
boolean editable,
java.lang.String elementValue,
boolean selected,
int elementType,
java.lang.String elementOpValue)
Constructor for this class |
Elem(java.lang.String elementName,
int elementType,
boolean editable)
Constructor for this class |
|
Method Summary |
int |
getAttributesCount()
|
java.lang.String |
getAttributesName(int i)
|
java.lang.String |
getAttributesOpValue(int i)
|
int |
getAttributesType(int i)
|
java.lang.String |
getAttributesValue(int i)
|
boolean |
getConsidered()
|
boolean |
getConsidered(int i)
|
boolean |
getDuplicate()
|
boolean |
getDuplicate(int i)
|
boolean |
getEditable()
|
boolean |
getEditable(int i)
|
java.lang.String |
getElementsName()
|
java.lang.String |
getElementsOpValue()
|
int |
getElementsType()
|
java.lang.String |
getElementsValue()
|
boolean |
getHasChild()
|
boolean |
getMemberOfCollection()
|
boolean |
getSelected()
|
boolean |
getSelected(int i)
|
void |
setAttributes(int i,
java.lang.String attributeName,
boolean editable,
java.lang.String attributeValue,
boolean selected,
int attributeType,
java.lang.String attributeOpValue)
|
void |
setAttributes(java.lang.String attributeName,
int attributeType,
boolean editable)
|
void |
setAttributesCount(int c)
|
void |
setAttributesName(int i,
java.lang.String c)
|
void |
setAttributesOpValue(int i,
java.lang.String attributeOpValue)
|
void |
setAttributesValue(int i,
java.lang.String attributeValue)
|
void |
setConsidered(boolean c)
|
void |
setConsidered(int i,
boolean c)
|
void |
setDuplicate(boolean c)
|
void |
setDuplicate(int i,
boolean c)
|
void |
setEditable(boolean c)
|
void |
setEditable(int i,
boolean c)
|
void |
setElementsName(java.lang.String c)
|
void |
setElementsOpValue(java.lang.String c)
|
void |
setElementsType(int c)
|
void |
setElementsValue(java.lang.String c)
|
void |
setHasChild(boolean c)
|
void |
setMemberOfCollection(boolean c)
|
void |
setSelected(boolean c)
|
void |
setSelected(int i,
boolean c)
|
void |
updateAttributesOpValue(int i,
java.lang.String attributeOpValue)
|
void |
updateAttributesValue(int i,
java.lang.String attributeValue)
|
void |
updateSelected(int i,
boolean selected)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Elem
public Elem(java.lang.String elementName,
boolean editable,
java.lang.String elementValue,
boolean selected,
int elementType,
java.lang.String elementOpValue)
- Constructor for this class
- Parameters:
elementName - Name of the element as defined in the DTDeditable - Whether element value is editable, i.e., a text box is provided by QT4XML if it is editable, else if element is of type EMPTY, it is non editable and no text box is providedelementValue - The condition entered for this element by the userselected - Whether the user selected this element, by checking the check boxelementType - Integer value as given by the IBM parser for an element typeelementOpValue - The operator value entered by the user (==, <=,...)
Elem
public Elem(java.lang.String elementName,
int elementType,
boolean editable)
- Constructor for this class
- Parameters:
elementName - Name of the element as defined in the DTDelementType - Integer value as given by the IBM parser for an element typeeditable - Whether element value is editable, i.e., a text box is provided by QT4XML if it is editable, else if element is of type EMPTY, it is non editable and no text box is provided
Elem
public Elem()
- Default constructor for this class
setElementsName
public void setElementsName(java.lang.String c)
setElementsType
public void setElementsType(int c)
setEditable
public void setEditable(boolean c)
setAttributesCount
public void setAttributesCount(int c)
setElementsValue
public void setElementsValue(java.lang.String c)
setElementsOpValue
public void setElementsOpValue(java.lang.String c)
setSelected
public void setSelected(boolean c)
setMemberOfCollection
public void setMemberOfCollection(boolean c)
setDuplicate
public void setDuplicate(boolean c)
setConsidered
public void setConsidered(boolean c)
setHasChild
public void setHasChild(boolean c)
getElementsName
public java.lang.String getElementsName()
getAttributesName
public java.lang.String getAttributesName(int i)
getAttributesValue
public java.lang.String getAttributesValue(int i)
getAttributesOpValue
public java.lang.String getAttributesOpValue(int i)
getAttributesType
public int getAttributesType(int i)
getSelected
public boolean getSelected(int i)
getDuplicate
public boolean getDuplicate(int i)
getConsidered
public boolean getConsidered(int i)
getEditable
public boolean getEditable(int i)
getElementsType
public int getElementsType()
getEditable
public boolean getEditable()
getAttributesCount
public int getAttributesCount()
getElementsValue
public java.lang.String getElementsValue()
getElementsOpValue
public java.lang.String getElementsOpValue()
getSelected
public boolean getSelected()
getMemberOfCollection
public boolean getMemberOfCollection()
getDuplicate
public boolean getDuplicate()
getConsidered
public boolean getConsidered()
getHasChild
public boolean getHasChild()
setAttributes
public void setAttributes(int i,
java.lang.String attributeName,
boolean editable,
java.lang.String attributeValue,
boolean selected,
int attributeType,
java.lang.String attributeOpValue)
setAttributes
public void setAttributes(java.lang.String attributeName,
int attributeType,
boolean editable)
updateSelected
public void updateSelected(int i,
boolean selected)
setDuplicate
public void setDuplicate(int i,
boolean c)
setConsidered
public void setConsidered(int i,
boolean c)
setSelected
public void setSelected(int i,
boolean c)
setEditable
public void setEditable(int i,
boolean c)
setAttributesName
public void setAttributesName(int i,
java.lang.String c)
setAttributesOpValue
public void setAttributesOpValue(int i,
java.lang.String attributeOpValue)
setAttributesValue
public void setAttributesValue(int i,
java.lang.String attributeValue)
updateAttributesOpValue
public void updateAttributesOpValue(int i,
java.lang.String attributeOpValue)
updateAttributesValue
public void updateAttributesValue(int i,
java.lang.String attributeValue)