|
|||||||||||
| 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.tapestry.parse.SpecificationParser
Parses the different types of Tapestry specifications.
Not threadsafe; it is the callers responsibility to ensure thread safety.
| Field Summary | |
static java.lang.String |
ASSET_NAME_PATTERN
Perl5 pattern for asset names. |
static java.lang.String |
BEAN_NAME_PATTERN
Perl5 pattern for helper bean names. |
static java.lang.String |
COMPONENT_ALIAS_PATTERN
Perl5 pattern for component type (which was known as an "alias" in earlier versions of Tapestry). |
static java.lang.String |
COMPONENT_ID_PATTERN
Perl5 pattern for component ids. |
static java.lang.String |
COMPONENT_TYPE_PATTERN
Perl5 pattern for component types (i.e., the type attribute of the <component> element). |
static java.lang.String |
EXTENDED_PROPERTY_NAME_PATTERN
Extended version of Tapestry.SIMPLE_PROPERTY_NAME_PATTERN, but allows a series of
individual property names, seperated by periods. |
static java.lang.String |
EXTENSION_NAME_PATTERN
Per5 pattern for extension names. |
static java.lang.String |
LIBRARY_ID_PATTERN
Perl5 pattern for library ids. |
static java.lang.String |
PAGE_NAME_PATTERN
Perl5 pattern for page names. |
static java.lang.String |
PARAMETER_NAME_PATTERN
Perl5 pattern that parameter names must conform to. |
static java.lang.String |
PROPERTY_NAME_PATTERN
Perl5 pattern that property names (that can be connected to parameters) must conform to. |
static java.lang.String |
SERVICE_NAME_PATTERN
Deprecated. As of release 4.0, the <service> element (in 3.0 DTDs) is no longer supported. |
static java.lang.String |
TAPESTRY_DTD_3_0_PUBLIC_ID
|
static java.lang.String |
TAPESTRY_DTD_4_0_PUBLIC_ID
|
| Constructor Summary | |
SpecificationParser(org.apache.hivemind.ClassResolver resolver)
This constructor is a convienience used by some tests. |
|
SpecificationParser(org.apache.hivemind.ClassResolver resolver,
SpecFactory factory)
Deprecated. to be removed in release 4.1 |
|
SpecificationParser(org.apache.hivemind.ErrorHandler errorHandler,
org.apache.commons.logging.Log log,
org.apache.hivemind.ClassResolver resolver,
SpecFactory factory)
The full constructor, used within Tapestry. |
|
| Method Summary | |
protected void |
begin(java.lang.String elementName,
java.util.Map attributes)
|
protected void |
end(java.lang.String elementName)
|
protected void |
initializeParser(org.apache.hivemind.Resource resource,
int startState)
|
IApplicationSpecification |
parseApplicationSpecification(org.apache.hivemind.Resource resource)
Parses an application specification from the provided Resource. |
IComponentSpecification |
parseComponentSpecification(org.apache.hivemind.Resource resource)
|
ILibrarySpecification |
parseLibrarySpecification(org.apache.hivemind.Resource resource)
|
IComponentSpecification |
parsePageSpecification(org.apache.hivemind.Resource resource)
|
protected java.lang.String |
peekContent()
|
protected void |
resetParser()
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolved an external entity, which is assumed to be the doctype. |
void |
setBindingSource(BindingSource bindingSource)
|
void |
setValueConverter(ValueConverter valueConverter)
|
| Methods inherited from class org.apache.hivemind.parse.AbstractParser |
characters, endElement, error, fatalError, getElementPath, getLocation, getResource, getState, peekElementName, peekObject, pop, push, push, setDocumentLocator, setState, startElement, unexpectedElement, updateObject, warning |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, 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 ASSET_NAME_PATTERN
public static final java.lang.String BEAN_NAME_PATTERN
public static final java.lang.String COMPONENT_ALIAS_PATTERN
public static final java.lang.String COMPONENT_ID_PATTERN
public static final java.lang.String COMPONENT_TYPE_PATTERN
public static final java.lang.String EXTENDED_PROPERTY_NAME_PATTERN
Tapestry.SIMPLE_PROPERTY_NAME_PATTERN, but allows a series of
individual property names, seperated by periods. In addition, each name within the dotted
sequence is allowed to contain dashes.
public static final java.lang.String EXTENSION_NAME_PATTERN
public static final java.lang.String LIBRARY_ID_PATTERN
public static final java.lang.String PAGE_NAME_PATTERN
public static final java.lang.String PARAMETER_NAME_PATTERN
public static final java.lang.String PROPERTY_NAME_PATTERN
public static final java.lang.String SERVICE_NAME_PATTERN
public static final java.lang.String TAPESTRY_DTD_3_0_PUBLIC_ID
public static final java.lang.String TAPESTRY_DTD_4_0_PUBLIC_ID
| Constructor Detail |
public SpecificationParser(org.apache.hivemind.ClassResolver resolver)
public SpecificationParser(org.apache.hivemind.ClassResolver resolver,
SpecFactory factory)
public SpecificationParser(org.apache.hivemind.ErrorHandler errorHandler,
org.apache.commons.logging.Log log,
org.apache.hivemind.ClassResolver resolver,
SpecFactory factory)
| Method Detail |
protected void begin(java.lang.String elementName,
java.util.Map attributes)
protected void end(java.lang.String elementName)
protected void initializeParser(org.apache.hivemind.Resource resource,
int startState)
public IApplicationSpecification parseApplicationSpecification(org.apache.hivemind.Resource resource)
ISpecificationParser
parseApplicationSpecification in interface ISpecificationParserpublic IComponentSpecification parseComponentSpecification(org.apache.hivemind.Resource resource)
parseComponentSpecification in interface ISpecificationParserpublic ILibrarySpecification parseLibrarySpecification(org.apache.hivemind.Resource resource)
parseLibrarySpecification in interface ISpecificationParserpublic IComponentSpecification parsePageSpecification(org.apache.hivemind.Resource resource)
parsePageSpecification in interface ISpecificationParserprotected java.lang.String peekContent()
protected void resetParser()
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
resolveEntity in interface org.xml.sax.EntityResolverorg.xml.sax.SAXExceptionpublic void setBindingSource(BindingSource bindingSource)
public void setValueConverter(ValueConverter valueConverter)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||