Last update: 2011-06-23

org.proteios.io
Class Tag

java.lang.Object
  extended by org.proteios.io.XMLTag
      extended by org.proteios.io.Tag
Direct Known Subclasses:
SchemaFactory.All, SchemaFactory.Annotation, SchemaFactory.Any, SchemaFactory.AnyAttribute, SchemaFactory.Appinfo, SchemaFactory.Attribute, SchemaFactory.AttributeGroup, SchemaFactory.Choice, SchemaFactory.ComplexContent, SchemaFactory.ComplexType, SchemaFactory.Documentation, SchemaFactory.Element, SchemaFactory.Enumeration, SchemaFactory.Extension, SchemaFactory.Field, SchemaFactory.fractionDigits, SchemaFactory.Group, SchemaFactory.Import, SchemaFactory.Include, SchemaFactory.Key, SchemaFactory.KeyRef, SchemaFactory.Length, SchemaFactory.List, SchemaFactory.MaxExclusive, SchemaFactory.maxLength, SchemaFactory.MinExclusive, SchemaFactory.minLength, SchemaFactory.Notation, SchemaFactory.Pattern, SchemaFactory.Redefine, SchemaFactory.Restriction, SchemaFactory.Restriction1, SchemaFactory.Schema, SchemaFactory.Selector, SchemaFactory.Sequence, SchemaFactory.SimpleContent, SchemaFactory.SimpleType, SchemaFactory.totalDigits, SchemaFactory.Union, SchemaFactory.Unique, SchemaFactory.WhiteSpace, TandemFactory.BioML, TandemFactory.Protein

public abstract class Tag
extends XMLTag

Extend this class if you want your classnames to match the tags.

Author:
gregory

Field Summary
 
Fields inherited from class org.proteios.io.XMLTag
parent
 
Constructor Summary
Tag()
           
 
Method Summary
 boolean matchEnd(javax.xml.stream.XMLStreamReader parser, XMLTag parent)
          Implement this method to match a specific end tag.
 boolean matchStart(javax.xml.stream.XMLStreamReader parser, XMLTag parent)
          Implement this method to match a specific tag.
 
Methods inherited from class org.proteios.io.XMLTag
addChild, allow, allowed, asString, attributes, build, children, matchAttribute, matchEndTag, matchStartTag, setChildren, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tag

public Tag()
Method Detail

matchEnd

public boolean matchEnd(javax.xml.stream.XMLStreamReader parser,
                        XMLTag parent)
Description copied from class: XMLTag
Implement this method to match a specific end tag. If you only use the name of a class you can extend the Tag class..

Specified by:
matchEnd in class XMLTag
Parameters:
parser - that reads an xml stream
parent - the current parent xml tag
Returns:
true if the end tag matches, false otherwise

matchStart

public boolean matchStart(javax.xml.stream.XMLStreamReader parser,
                          XMLTag parent)
Description copied from class: XMLTag
Implement this method to match a specific tag. If you only need to match the name of the tag you can extend the Tag class.

Specified by:
matchStart in class XMLTag
Parameters:
parser - that reads an xml stream
parent - the current parent xml tag
Returns:
true if the start tag matches, false otherwise

Last update: 2011-06-23