|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.core.metadata.projectdoc.ProjectdocMetaDataParser
public abstract class ProjectdocMetaDataParser
Parses projectdoc information from property XML descriptors.
Nested Class Summary | |
---|---|
class |
ProjectdocMetaDataParser.ParserContext Provide access to information relevant for parsing and storing the parsed information. |
Field Summary | |
---|---|
protected PropertiesContext |
context The properties context to fetch information from the META-INF folder. |
protected ProjectdocAnnotationCollector.Defaults |
defaults The metadata defaults to use. |
Constructor Summary | |
---|---|
protected |
ProjectdocMetaDataParser(PropertiesContext context) Convenience constructor without defaults. |
protected |
ProjectdocMetaDataParser(PropertiesContext context, ProjectdocAnnotationCollector.Defaults defaults) Default constructor. |
Method Summary | |
---|---|
protected abstract String |
calcPath(PropertyDescriptor descriptor, Locale locale) Calculates the path to a resource to be parsed. |
protected abstract org.jdom.Namespace |
getNs() Returns the namespace of the elements parsed by this parser. |
ProjectdocMetaData |
parse(PropertyDescriptor descriptor, Locale locale) Parses the comments for the given descriptor. |
protected void |
parseAdditional(ProjectdocMetaDataParser.ParserContext context) The hook that allows to add further information. |
protected void |
parseBase(PropertyDescriptor descriptor, Locale locale, ProjectdocMetaData metaData) Parses the comments for the given descriptor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final PropertiesContext context
protected final ProjectdocAnnotationCollector.Defaults defaults
Constructor Detail |
---|
protected ProjectdocMetaDataParser(PropertiesContext context) throws NullPointerException
context
- the properties context to fetch information from the META-INF folder.
NullPointerException
- if
context
is
null
.
protected ProjectdocMetaDataParser(PropertiesContext context, ProjectdocAnnotationCollector.Defaults defaults) throws NullPointerException
context
- the properties context to fetch information from the META-INF folder.
defaults
- the metadata defaults to use.
NullPointerException
- if
context
is
null
.
Method Detail |
---|
@CheckForNull public ProjectdocMetaData parse(PropertyDescriptor descriptor, Locale locale)
This method is overridden by subclasses to return their specific implementation of the DocumentMetaData
.
descriptor
- the descriptor whose comments are requested to be parsed.
locale
- the locale to select the comments.
null
if no information is provided.
protected final void parseBase(PropertyDescriptor descriptor, Locale locale, ProjectdocMetaData metaData) throws MetaDataException
descriptor
- the descriptor whose comments are requested to be parsed.
locale
- the locale to select the comments.
metaData
- the container where the parsed information is put to.
MetaDataException
- if the meta data cannot be read.
protected abstract String calcPath(PropertyDescriptor descriptor, Locale locale)
descriptor
- the descriptor to the resource.
locale
- the requested locale.
protected void parseAdditional(ProjectdocMetaDataParser.ParserContext context) throws MetaDataException
context
- to provide access to information relevant for parsing and storing the parsed information.
MetaDataException
- if the meta data cannot be read.
protected abstract org.jdom.Namespace getNs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |