info.magnolia.module.model
Class ModuleDefinition

java.lang.Object
  extended by 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

Constructor Summary
ModuleDefinition()
           
ModuleDefinition(java.lang.String name, Version version, java.lang.String className, java.lang.Class<? extends ModuleVersionHandler> versionHandler)
           
 
Method Summary
 void addDependency(DependencyDefinition dep)
           
 void addProperty(PropertyDefinition property)
           
 void addRepository(RepositoryDefinition repository)
           
 void addServlet(ServletDefinition def)
           
 java.lang.String getClassName()
           
 java.util.Collection<DependencyDefinition> getDependencies()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
          Returns the displayName or the name if displayName wasn't set.
 java.lang.String getName()
           
 java.util.Collection<PropertyDefinition> getProperties()
           
 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.
 java.util.Collection<RepositoryDefinition> getRepositories()
           
 java.util.Collection<ServletDefinition> getServlets()
           
 Version getVersion()
           
 java.lang.Class<? extends ModuleVersionHandler> getVersionHandler()
           
 void setClassName(java.lang.String className)
           
 void setDescription(java.lang.String description)
           
 void setDisplayName(java.lang.String displayName)
           
 void setName(java.lang.String name)
           
 void setVersion(Version version)
           
 void setVersionHandler(java.lang.Class<? extends ModuleVersionHandler> versionHandler)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleDefinition

public ModuleDefinition()

ModuleDefinition

public ModuleDefinition(java.lang.String name,
                        Version version,
                        java.lang.String className,
                        java.lang.Class<? extends ModuleVersionHandler> versionHandler)
Method Detail

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.