AnnotationReader
, AnnotationWriter
public class SBMLRDFAnnotationParser extends java.lang.Object implements AnnotationReader, AnnotationWriter
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
CUSTOM_RDF |
A Constant
String that is used to store any remaining children
or attributes after having removed the standard SBML RDF elements and attributes. |
static java.lang.String |
RDF_NODE_COLOR |
A Constant
String that is used to store a XMLNode
color in the user objects map. |
Constructor | Description |
---|---|
SBMLRDFAnnotationParser() |
Modifier and Type | Method | Description |
---|---|---|
int |
getNumberOfNonEmptyChildElement(XMLNode xmlNode) |
Returns the number of child XMLNode, excluding text XMLNode that
contains only spaces.
|
void |
processAnnotation(SBase contextObject) |
Process the annotation of the given
SBase object. |
XMLNode |
writeAnnotation(SBase contextObject,
XMLNode xmlNode) |
public static final java.lang.String RDF_NODE_COLOR
String
that is used to store a XMLNode
color in the user objects map.public static final java.lang.String CUSTOM_RDF
String
that is used to store any remaining children
or attributes after having removed the standard SBML RDF elements and attributes.
It is stored as an XMLNode
in the user objects map.
public XMLNode writeAnnotation(SBase contextObject, XMLNode xmlNode)
AnnotationWriter
SBase
object into the given
XMLNode
.
This method can change the content of the XMLNode
by
removing or adding nodes.
writeAnnotation
in interface AnnotationWriter
public void processAnnotation(SBase contextObject)
AnnotationReader
SBase
object.
This method can change the content of the annotation XMLNode
by
removing or adding nodes.processAnnotation
in interface AnnotationReader
public int getNumberOfNonEmptyChildElement(XMLNode xmlNode)
xmlNode
-