T - The type of the parsed entity.public class EntryContentHandler<T> extends EntryReader
| Constructor and Description |
|---|
EntryContentHandler(Class<?> entityClass,
EntityType entityType,
Metadata metadata,
Logger logger)
Constructor.
|
EntryContentHandler(Class<?> entityClass,
Metadata metadata,
Logger logger)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
boolean |
closeEntry(Entry entry)
Close the given entry, in case we really handle an entry (@see current
State). |
boolean |
closeLink()
Handles the end of a "link" element.
|
void |
endContent(Content content)
Called at the end of the XML block that defines the given content
element.
|
void |
endElement(String uri,
String localName,
String qName) |
void |
endEntry(Entry entry)
Called at the end of the XML block that defines the given entry.
|
void |
endLink(Link link)
Called at the end of the XML block that defines the given link.
|
T |
getEntity() |
void |
startContent(Content content)
Called when a new content element has been detected in the Atom document.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attrs) |
void |
startEntry(Entry entry)
Called when a new entry has been detected in the Atom document.
|
void |
startFeed(Feed feed) |
void |
startLink(Link link)
Called when a new link has been detected in the Atom document.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic EntryContentHandler(Class<?> entityClass, EntityType entityType, Metadata metadata, Logger logger)
entityClass - The class of the parsed entities.entityType - The entity type of the parsed entities.metadata - The metadata of the remote OData service.logger - The logger.public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class EntryReaderSAXExceptionpublic boolean closeEntry(Entry entry)
State). Multiple levels expand fix start.entry - The entry to close.public boolean closeLink()
public void endContent(Content content)
EntryReaderendContent in class EntryReadercontent - The current content element.public void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class EntryReaderSAXExceptionpublic void endEntry(Entry entry)
EntryReaderendEntry in class EntryReaderentry - The current entry.public void endLink(Link link)
EntryReaderendLink in class EntryReaderlink - The current link.public T getEntity()
public void startContent(Content content)
EntryReaderstartContent in class EntryReadercontent - The current content element.public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class EntryReaderSAXExceptionpublic void startEntry(Entry entry)
EntryReaderstartEntry in class EntryReaderentry - The current entry.public void startFeed(Feed feed)
public void startLink(Link link)
EntryReaderstartLink in class EntryReaderlink - The current link.Copyright © 2005–2015. All rights reserved.