Class ElementParser<T>
- java.lang.Object
-
- com.lyncode.xoai.serviceprovider.oaipmh.ElementParser<T>
-
- All Implemented Interfaces:
XMLParser
- Direct Known Subclasses:
AboutTypeParser,DescriptionTypeParser,ErrorParser,GetRecordParser,HeaderParser,IdentifyParser,ListIdentifiersParser,ListMetadataFormatsParser,ListRecordsParser,ListSetsParser,MetadataFormatParser,MetadataTypeParser,OAIPMHParser,RecordParser,RequestParser,ResumptionTokenParser,SetParser,StringParser
public abstract class ElementParser<T> extends Object implements XMLParser
-
-
Constructor Summary
Constructors Constructor Description ElementParser(OAIServiceConfiguration<MetadataParser,AboutItemParser,DescriptionParser,AboutSetParser> oaiServiceConfiguration)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description OAIServiceConfiguration<MetadataParser,AboutItemParser,DescriptionParser,AboutSetParser>getConfiguration()protected StringgetElement(XMLEventReader reader, String name)protected voidnextElement(XMLEventReader reader)Tparse(XMLEventReader reader)protected abstract TparseElement(XMLEventReader reader)
-
-
-
Constructor Detail
-
ElementParser
public ElementParser(OAIServiceConfiguration<MetadataParser,AboutItemParser,DescriptionParser,AboutSetParser> oaiServiceConfiguration)
-
-
Method Detail
-
getConfiguration
public OAIServiceConfiguration<MetadataParser,AboutItemParser,DescriptionParser,AboutSetParser> getConfiguration()
-
parse
public T parse(XMLEventReader reader) throws ParseException
- Specified by:
parsein interfaceXMLParser- Throws:
ParseException
-
parseElement
protected abstract T parseElement(XMLEventReader reader) throws ParseException
- Throws:
ParseException
-
nextElement
protected void nextElement(XMLEventReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
getElement
protected String getElement(XMLEventReader reader, String name) throws XMLStreamException, ParseException
- Throws:
XMLStreamExceptionParseException
-
-