|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcwi.GraphXML.Elements.ApplicationData
Application dependent data, which can be attached to a full GraphXML specification, to a graph, a node, edge, an editing element, etc. Setting of the values is class protected; only the retrieval is meant to be public.
All data can have a null value; they are assigned real objects only if there is something to put there (e.g., the arrays are not defaulted to zero length arrays, Strings are not defaulted to zero length strings, etc.) While this is a bit disagreeable for the user, it avoids unnecessary "new" operations, which can be time consuming.
Constructor Summary | |
---|---|
protected |
ApplicationData(java.lang.String l,
java.lang.String d,
Reference[] drs,
java.util.Properties prs,
java.util.Properties graphPrs)
|
Method Summary | |
---|---|
static ApplicationData |
create(org.w3c.dom.NodeList children,
ParserError parserError)
Collect the application-dependent element data for a specific node. |
static ApplicationData |
create(org.w3c.dom.Node element,
ParserError parserError)
Collect the application-dependent element data for a specific node. |
java.lang.String |
getData()
Get data. |
Reference[] |
getDatarefs()
Get the data references. |
java.util.Properties |
getGraphSpecificProperties()
Get graph-specific properties. |
java.lang.String |
getLabel()
Get the label. |
java.util.Properties |
getProperties()
Get properties. |
java.lang.String |
toString()
Overrides the usual routine to make a rough print of the content. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected ApplicationData(java.lang.String l, java.lang.String d, Reference[] drs, java.util.Properties prs, java.util.Properties graphPrs)
Method Detail |
public java.lang.String getLabel()
public Reference[] getDatarefs()
public java.lang.String getData()
public java.util.Properties getProperties()
public java.util.Properties getGraphSpecificProperties()
public static ApplicationData create(org.w3c.dom.Node element, ParserError parserError)
element
- the GraphXML element whose data are to be collectedparserError
- the parser in charge; used to generate error messages
public static ApplicationData create(org.w3c.dom.NodeList children, ParserError parserError)
children
- list of children (possibly) containing application dataparserError
- the parser in charge; used to generate error messages
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |