|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.hivemind.parse.AbstractParser
org.apache.hivemind.parse.DescriptorParser
public final class DescriptorParser
Used to parse HiveMind module deployment descriptors.
TODO: The parser ignores element content except inside <contribution> and <invoke-factory> ... it probably should forbid non-whitespace content.
| Field Summary | |
|---|---|
static java.lang.String |
ID_PATTERN
Format for configuration point ids, service point ids and schema ids. |
static java.lang.String |
MODULE_ID_PATTERN
Module ids are a sequence of simple ids seperated by periods. |
static java.lang.String |
VERSION_PATTERN
|
| Constructor Summary | |
|---|---|
DescriptorParser(ErrorHandler errorHandler)
|
|
| Method Summary | |
|---|---|
void |
begin(java.lang.String elementName,
java.util.Map attributes)
Invoked when an element's start tag is recognized. |
void |
end(java.lang.String elementName)
Invoked when an element's close tag is recognized. |
ModuleDescriptor |
getModuleDescriptor()
|
void |
initialize(Resource resource,
ClassResolver resolver)
|
protected void |
push(java.lang.String elementName,
java.lang.Object object,
int state)
Enters a new state, pushing an object onto the stack. |
void |
reset()
|
| Methods inherited from class org.apache.hivemind.parse.AbstractParser |
|---|
characters, endElement, error, fatalError, getElementPath, getLocation, getResource, getState, initializeParser, peekContent, peekElementName, peekObject, pop, push, resetParser, setDocumentLocator, setState, startElement, unexpectedElement, updateObject, warning |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ID_PATTERN
public static final java.lang.String MODULE_ID_PATTERN
public static final java.lang.String VERSION_PATTERN
| Constructor Detail |
|---|
public DescriptorParser(ErrorHandler errorHandler)
| Method Detail |
|---|
public void begin(java.lang.String elementName,
java.util.Map attributes)
AbstractParser
begin in class AbstractParser
protected void push(java.lang.String elementName,
java.lang.Object object,
int state)
AbstractParserAbstractParser.push(String, Object, int, boolean), and ignores character data within the element.
push in class AbstractParserelementName - the element whose start tag was just parsedobject - the object created to represent the new objectstate - the new state for the parsepublic void end(java.lang.String elementName)
AbstractParserAbstractParser.peekContent().
end in class AbstractParser
public void initialize(Resource resource,
ClassResolver resolver)
public ModuleDescriptor getModuleDescriptor()
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||