public class MetadataObjectHandler extends MasterContentHandler implements ContentHandler
Parse an XML element and its children into metadata objects, which are classes annotated with their XML serialization information. The MAJ API has all the baseline classes for AAF and MXF included. Use the warehouse to add extension objects to be parsed by this method.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
Warehouse.lookForClass(Class)abstractInterchangeable, abstractMeta, existingMeta, interchangeable, meta| Constructor and Description |
|---|
MetadataObjectHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String name)
Called if an end element event is sent by the SAX parser to a master content handler.
|
void |
startElement(String uri,
String localName,
String name,
Attributes atts)
Called by the SAX parser when the root element of the input source of this master
content handler has been read.
|
endDocument, endPrefixMapping, getAttributesForThis, getAttributeValueThisElement, getElementName, getFullElementName, getNamespace, ignorableWhitespace, processingInstruction, registerCoreHandlers, registerHandler, registerHandlersForClass, setDocumentLocator, skippedEntity, startDocument, startPrefixMappingequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMappingpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class MasterContentHandlerSAXExceptionContentHandler.characters(char[], int, int)public void endElement(String uri, String localName, String name) throws SAXException
MasterContentHandlerCalled if an end element event is sent by the SAX parser to a master content handler. This should not happen and so an exception will be thrown.
endElement in interface ContentHandlerendElement in class MasterContentHandlerSAXExceptionContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)public void startElement(String uri, String localName, String name, Attributes atts) throws SAXException
MasterContentHandlerCalled by the SAX parser when the root element of the input source of this master content handler has been read. A sub element content handler is created from the register of handlers and parsing of the document continues using this newly created handler.
startElement in interface ContentHandlerstartElement in class MasterContentHandlerSAXExceptionContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.