org.apache.hivemind.parse
Class ModuleDescriptor
java.lang.Object
|
+--org.apache.hivemind.impl.BaseLocatable
|
+--org.apache.hivemind.parse.BaseAnnotationHolder
|
+--org.apache.hivemind.parse.ModuleDescriptor
- All Implemented Interfaces:
- AnnotationHolder, Locatable, LocationHolder
- public final class ModuleDescriptor
- extends BaseAnnotationHolder
Representation of a HiveMind module descriptor, as parsed by
DescriptorParser
. Corresponds to the root <module>
element.
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ModuleDescriptor
public ModuleDescriptor(ClassResolver resolver,
ErrorHandler errorHandler)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
addServicePoint
public void addServicePoint(ServicePointDescriptor service)
getServicePoints
public java.util.List getServicePoints()
addImplementation
public void addImplementation(ImplementationDescriptor descriptor)
getImplementations
public java.util.List getImplementations()
addConfigurationPoint
public void addConfigurationPoint(ConfigurationPointDescriptor descriptor)
getConfigurationPoints
public java.util.List getConfigurationPoints()
addContribution
public void addContribution(ContributionDescriptor descriptor)
getContributions
public java.util.List getContributions()
addSubModule
public void addSubModule(SubModuleDescriptor subModule)
getSubModules
public java.util.List getSubModules()
addDependency
public void addDependency(DependencyDescriptor dependency)
getDependencies
public java.util.List getDependencies()
addSchema
public void addSchema(Schema schema)
- Adds a schema to this module descriptor. If a schema with the same id already has been added,
an error is reported and the given schema is ignored.
- Since:
- 1.1
getSchema
public Schema getSchema(java.lang.String id)
- Since:
- 1.1
getSchemas
public java.util.Collection getSchemas()
- Since:
- 1.1
getModuleId
public java.lang.String getModuleId()
getVersion
public java.lang.String getVersion()
setModuleId
public void setModuleId(java.lang.String string)
setVersion
public void setVersion(java.lang.String string)
getClassResolver
public ClassResolver getClassResolver()