org.sbml.jsbml.xml.stax
public class SBMLObjectForXML extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.String> |
attributes
Contains the XML attributes of a SBML component to write.
|
private java.lang.String |
characters
Represents the text of a SBML component to write.
|
private java.lang.String |
name
Represents the localName of a SBML component to write.
|
private java.lang.String |
namespace
Represents the namespace URI of a SBML component to write.
|
private java.lang.String |
prefix
Represents the prefix of a SBML component to write.
|
Constructor and Description |
---|
SBMLObjectForXML() |
Modifier and Type | Method and Description |
---|---|
void |
addAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Adds an attribute to this attributes HashMap.
|
void |
clear()
Sets all the variable of this object to
null . |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes() |
java.lang.String |
getCharacters() |
java.lang.String |
getName() |
java.lang.String |
getNamespace() |
java.lang.String |
getPrefix() |
boolean |
isSetAttributes() |
boolean |
isSetCharacters() |
boolean |
isSetName() |
boolean |
isSetNamespace() |
boolean |
isSetPrefix() |
void |
setCharacters(java.lang.String characters) |
void |
setName(java.lang.String name) |
void |
setNamespace(java.lang.String namespace) |
void |
setPrefix(java.lang.String prefix) |
java.lang.String |
toString() |
private java.lang.String namespace
private java.lang.String prefix
private java.lang.String name
private java.util.Map<java.lang.String,java.lang.String> attributes
private java.lang.String characters
public void addAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes
- the attributes to setpublic void clear()
null
.public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public java.lang.String getCharacters()
public java.lang.String getName()
public java.lang.String getNamespace()
public java.lang.String getPrefix()
public boolean isSetAttributes()
true
if the attributes of this object is not null
.public boolean isSetCharacters()
true
if the characters of this object is not null
.public boolean isSetName()
true
if the name of this object is not null
.public boolean isSetNamespace()
true
if the namespace of this Object is not null;public boolean isSetPrefix()
true
if the prefix of this Object is not null
.public void setCharacters(java.lang.String characters)
characters
- the characters to setpublic void setName(java.lang.String name)
name
- the name to setpublic void setNamespace(java.lang.String namespace)
namespace
- the namespace to setpublic void setPrefix(java.lang.String prefix)
prefix
- the prefix to setpublic java.lang.String toString()
toString
in class java.lang.Object