org.proteios.io
Class Tag
java.lang.Object
org.proteios.io.XMLTag
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
|
Constructor Summary |
Tag()
|
| Methods inherited from class org.proteios.io.XMLTag |
addChild, allow, allowed, asString, attributes, build, children, matchAttribute, matchEndTag, matchStartTag, setChildren, toString |
Tag
public Tag()
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 streamparent - 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 streamparent - the current parent xml tag
- Returns:
- true if the start tag matches, false otherwise