info.magnolia.module.model
Class ModuleDefinition
java.lang.Object
info.magnolia.module.model.ModuleDefinition
public class ModuleDefinition
- extends java.lang.Object
Describes a module. Bean representation of a module's xml descriptor.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ModuleDefinition
public ModuleDefinition()
ModuleDefinition
public ModuleDefinition(java.lang.String name,
Version version,
java.lang.String className,
java.lang.Class<? extends ModuleVersionHandler> versionHandler)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getDisplayName
public java.lang.String getDisplayName()
- Returns the displayName or the name if displayName wasn't set.
setDisplayName
public void setDisplayName(java.lang.String displayName)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)
getClassName
public java.lang.String getClassName()
setClassName
public void setClassName(java.lang.String className)
getVersionHandler
public java.lang.Class<? extends ModuleVersionHandler> getVersionHandler()
setVersionHandler
public void setVersionHandler(java.lang.Class<? extends ModuleVersionHandler> versionHandler)
setVersion
public void setVersion(Version version)
getVersion
public Version getVersion()
getDependencies
public java.util.Collection<DependencyDefinition> getDependencies()
addDependency
public void addDependency(DependencyDefinition dep)
getServlets
public java.util.Collection<ServletDefinition> getServlets()
addServlet
public void addServlet(ServletDefinition def)
getRepositories
public java.util.Collection<RepositoryDefinition> getRepositories()
addRepository
public void addRepository(RepositoryDefinition repository)
getProperties
public java.util.Collection<PropertyDefinition> getProperties()
addProperty
public void addProperty(PropertyDefinition property)
getProperty
public java.lang.String getProperty(java.lang.String propertyName)
- Convenience method which returns the value of the given property,
or null if it does not exist.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.