info.magnolia.module.model
Class ModuleDefinition
java.lang.Object
info.magnolia.module.model.ModuleDefinition
public class ModuleDefinition
- extends Object
Describes a module. Bean representation of a module's xml descriptor.
ModuleDefinition
public ModuleDefinition()
ModuleDefinition
public ModuleDefinition(String name,
Version version,
String className,
Class<? extends ModuleVersionHandler> versionHandler)
getName
public String getName()
setName
public void setName(String name)
getDisplayName
public String getDisplayName()
- Returns the displayName or the name if displayName wasn't set.
setDisplayName
public void setDisplayName(String displayName)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getClassName
public String getClassName()
setClassName
public void setClassName(String className)
getVersionHandler
public Class<? extends ModuleVersionHandler> getVersionHandler()
setVersionHandler
public void setVersionHandler(Class<? extends ModuleVersionHandler> versionHandler)
setVersion
public void setVersion(Version version)
getVersion
public Version getVersion()
getDependencies
public Collection<DependencyDefinition> getDependencies()
setDependencies
public void setDependencies(Collection<DependencyDefinition> dependencies)
addDependency
public void addDependency(DependencyDefinition dep)
getServlets
public Collection<ServletDefinition> getServlets()
setServlets
public void setServlets(Collection<ServletDefinition> servlets)
addServlet
public void addServlet(ServletDefinition def)
getRepositories
public Collection<RepositoryDefinition> getRepositories()
setRepositories
public void setRepositories(Collection<RepositoryDefinition> repositories)
addRepository
public void addRepository(RepositoryDefinition repository)
getProperties
public Collection<PropertyDefinition> getProperties()
setProperties
public void setProperties(Collection<PropertyDefinition> properties)
addProperty
public void addProperty(PropertyDefinition property)
getComponents
public Collection<ComponentsDefinition> getComponents()
setComponents
public void setComponents(Collection<ComponentsDefinition> components)
addComponents
public boolean addComponents(ComponentsDefinition components)
getProperty
public String getProperty(String propertyName)
- Convenience method which returns the value of the given property,
or null if it does not exist.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.