public final class PSGroupHandler extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Field and Description |
---|---|
protected List<E> |
_items
The list of entities processed by this handler.
|
protected E |
current
The entity being currently processed.
|
Constructor and Description |
---|
PSGroupHandler()
A new handler to fill up the values of an incomplete group (or project).
|
PSGroupHandler(PSGroup group)
A new handler to fill up the values of an incomplete group (or project).
|
Modifier and Type | Method and Description |
---|---|
void |
endElement(String uri,
String localName,
String qName) |
E |
get() |
List<E> |
list() |
PSGroup |
make(Attributes atts,
PSGroup entity)
Generates an instance of the entity from the specified attributes.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected final List<E extends PSEntity> _items
protected E extends PSEntity current
public PSGroupHandler()
public PSGroupHandler(PSGroup group)
group
- the group or project to updatepublic void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public PSGroup make(Attributes atts, PSGroup entity)
If the specified entity corresponds to the entity to build from the specified arguments that object is updated and returned.
Otherwise, if the specified entity is null
or does not match the attributes
a new instance is created an returned.
atts
- the attributesentity
- an existing entity instance to reuse.public final List<E> list()
public final E get()
Copyright © 2016 Allette Systems. All rights reserved.