|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.entities.phase.DatabaseElement
public class DatabaseElement
Represents the field definition within the database section of a phase.
Field Summary | |
---|---|
java.lang.String |
defaultValue
The 'DefaultValue' property of the element. |
java.lang.String |
displayName
The 'DisplayName' property of the element. |
boolean |
mandatory
The 'Mandatory' property of the element. |
java.lang.String |
name
The 'Name' property of the element. |
java.lang.String |
predefinedValues
The 'PredefinedValues' property of the element. Multiple predefined values are assumed to be separated by semi-colon ';'. |
Constructor Summary | |
---|---|
DatabaseElement()
Creates a new instance of DatabaseElement. |
|
DatabaseElement(org.w3c.dom.Node node)
Creates a new instance of DatabaseElement. |
|
DatabaseElement(java.lang.String nodeRep)
Creates a new instance of DatabaseElement. |
|
DatabaseElement(java.lang.String name,
java.lang.String displayName,
java.lang.String predefinedValues,
java.lang.String defaultValue,
boolean mandatory)
Creates a new instance of DatabaseElement. |
Method Summary | |
---|---|
private void |
createElementFromNode(org.w3c.dom.Node node)
Creates the file element by supplying its XmlNode represenation. |
java.lang.String[] |
getPredefinedValues()
Gets a list of predefined values of this element. |
java.lang.String |
toString()
Returns the string representation of this object. |
java.lang.String |
toXmlString()
Converts this instance to a valid XML string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String name
public java.lang.String displayName
public java.lang.String predefinedValues
public java.lang.String defaultValue
public boolean mandatory
Constructor Detail |
---|
public DatabaseElement()
public DatabaseElement(java.lang.String name, java.lang.String displayName, java.lang.String predefinedValues, java.lang.String defaultValue, boolean mandatory)
name
- The 'Name' property of the element.displayName
- The 'DisplayName' property of the element.predefinedValues
- The 'PredefinedValues' property of the element.defaultValue
- The 'DefaultValue' property of the element.mandatory
- The 'Mandatory' property of the element.public DatabaseElement(org.w3c.dom.Node node) throws PhaseDefinitionException
node
- The Xml Node representing this element.
PhaseDefinitionException
- If the given node couldn't be parsed.public DatabaseElement(java.lang.String nodeRep) throws PhaseDefinitionException
nodeRep
- The Xml String representing this element.
PhaseDefinitionException
- If the given String couldn't be parsed.Method Detail |
---|
private void createElementFromNode(org.w3c.dom.Node node) throws PhaseDefinitionException
node
- The Xml Node representing this element.
PhaseDefinitionException
- If the node name is not 'Folder' or attributes are missing.public java.lang.String[] getPredefinedValues()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toXmlString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |