org.sbml.jsbml.xml.parsers
public class VCardParser extends java.lang.Object implements ReadingParser
VCardParser
is used to parser the subNodes of an annotation which have this
namespace URI : "http://www.w3.org/2001/vcard-rdf/3.0#".Modifier and Type | Field and Description |
---|---|
private boolean |
hasReadEMAIL
Boolean value to know if the 'EMAIL' node has been read.
|
private boolean |
hasReadFamilyName
Boolean value to know if the 'Family' node has been read.
|
private boolean |
hasReadGivenName
Boolean value to know if the 'Given' node has been read.
|
private boolean |
hasReadNNode
Boolean value to know if the 'N' node has been read.
|
private boolean |
hasReadOrgName
Boolean value to know if the 'Orgname' node has been read.
|
private boolean |
hasReadORGNode
Boolean value to know if the 'ORG' node has been read.
|
private org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
VCardParser() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getNamespaceURI() |
void |
processAttribute(java.lang.String elementName,
java.lang.String attributeName,
java.lang.String value,
java.lang.String prefix,
boolean isLastAttribute,
java.lang.Object contextObject)
Process the XML attribute and modify 'contextObject' in consequence.
|
void |
processCharactersOf(java.lang.String elementName,
java.lang.String characters,
java.lang.Object contextObject)
Process the text of a XML element and modify 'contextObject' in consequence.
|
void |
processEndDocument(SBMLDocument sbmlDocument)
Process the end of the document.
|
boolean |
processEndElement(java.lang.String elementName,
java.lang.String prefix,
boolean isNested,
java.lang.Object contextObject)
Process the end of the element 'elementName'.
|
void |
processNamespace(java.lang.String elementName,
java.lang.String URI,
java.lang.String prefix,
java.lang.String localName,
boolean hasAttributes,
boolean isLastNamespace,
java.lang.Object contextObject)
Process the namespace and modify the contextObject in consequence.
|
java.lang.Object |
processStartElement(java.lang.String elementName,
java.lang.String prefix,
boolean hasAttribute,
boolean hasNamespaces,
java.lang.Object contextObject)
Process the XML element and modify 'contextObject' in consequence.
|
private boolean hasReadNNode
private boolean hasReadFamilyName
private boolean hasReadGivenName
private boolean hasReadOrgName
private boolean hasReadEMAIL
private boolean hasReadORGNode
private org.apache.log4j.Logger logger
public static java.lang.String getNamespaceURI()
public void processAttribute(java.lang.String elementName, java.lang.String attributeName, java.lang.String value, java.lang.String prefix, boolean isLastAttribute, java.lang.Object contextObject)
ReadingParser
processAttribute
in interface ReadingParser
elementName
- : the localName of the XML element.attributeName
- : the attribute localName of the XML element.value
- : the value of the XML attribute.prefix
- : the attribute prefixisLastAttribute
- : boolean value to know if this attribute is the last attribute of the XML element.contextObject
- : the object to set or modify depending on the identity of the current attribute. This object
represents the context of the XML attribute in the SBMLDocument.public void processCharactersOf(java.lang.String elementName, java.lang.String characters, java.lang.Object contextObject)
ReadingParser
processCharactersOf
in interface ReadingParser
elementName
- : the localName of the XML element.characters
- : the text of this XML element.contextObject
- : the object to set or modify depending on the identity of the current element. This object
represents the context of the XML element in the SBMLDocument.public void processEndDocument(SBMLDocument sbmlDocument)
ReadingParser
processEndDocument
in interface ReadingParser
sbmlDocument
- : the final initialised SBMLDocument instance.public boolean processEndElement(java.lang.String elementName, java.lang.String prefix, boolean isNested, java.lang.Object contextObject)
ReadingParser
processEndElement
in interface ReadingParser
elementName
- : the localName of the XML element.prefix
- : the prefix of the XML element.isNested
- : boolean value to know if the XML element is a nested element.contextObject
- : the object to set or modify depending on the identity of the current element. This object
represents the context of the XML element in the SBMLDocument.public void processNamespace(java.lang.String elementName, java.lang.String URI, java.lang.String prefix, java.lang.String localName, boolean hasAttributes, boolean isLastNamespace, java.lang.Object contextObject)
ReadingParser
processNamespace
in interface ReadingParser
elementName
- : the localName of the XML element.URI
- : the URI of the namespaceprefix
- : the prefix of the namespace.localName
- : the localName of the namespace.hasAttributes
- : boolean value to know if there are attributes after the namespace declarations.isLastNamespace
- : boolean value to know if this namespace is the last namespace of this element.contextObject
- : the object to set or modify depending on the identity of the current element. This object
represents the context of the XML element in the SBMLDocument.public java.lang.Object processStartElement(java.lang.String elementName, java.lang.String prefix, boolean hasAttribute, boolean hasNamespaces, java.lang.Object contextObject)
ReadingParser
processStartElement
in interface ReadingParser
elementName
- : the localName of the XML element to processprefix
- : the prefix of the XML element to processhasAttribute
- : boolean value to know if this XML element has attributes.hasNamespaces
- : boolean value to know if this XML element contains namespace declarations.contextObject
- : the object to set or modify depending on the identity of the current XML element. This object
represents the context of the XML element in the SBMLDocument.