info.magnolia.module.data
Class TypeDefinition

java.lang.Object
  extended by info.magnolia.module.data.TypeDefinition

public class TypeDefinition
extends Object

Bean describing definition of custom type and its properties.

Version:
$Id$
Author:
philipp, Bert Leunis (Neteffect, Amsterdam)

Constructor Summary
TypeDefinition()
           
 
Method Summary
 info.magnolia.cms.core.Content getContent()
           
 String getDialog()
           
 String getIcon()
          Tries to get the icon stored within the type.
 String getImage()
           
 int getLevel()
          Type levels are 1 based.
 String getMenuTitle()
           
 String getName()
           
 String getNodeTypes()
           
 String getParentName()
           
 String getRootPath()
           
 String getTitle()
           
 String getTree()
           
 String getTypePath()
           
 boolean isHierarchy()
           
 boolean isSortByName()
           
 boolean isSortedByName()
          Deprecated. Since 1.4. Use isSortByName() instead.
 void setContent(info.magnolia.cms.core.Content content)
           
 void setDialog(String dialog)
           
 void setHierarchy(boolean hierarchy)
           
 void setImage(String image)
           
 void setLevel(int level)
          Type levels are 1 based.
 void setMenuTitle(String menuTitle)
           
 void setName(String name)
           
 void setNodeTypes(String nodeTypes)
           
 void setParentName(String parentName)
           
 void setRootPath(String rootPath)
           
 void setSortByName(boolean sortByName)
           
 void setSortedByName(boolean sortedByName)
          Deprecated. Since 1.4. Use setSortByName(boolean) instead.
 void setTitle(String title)
           
 void setTree(String tree)
           
 void setTypePath(String typePath)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeDefinition

public TypeDefinition()
Method Detail

setContent

public void setContent(info.magnolia.cms.core.Content content)

getContent

public info.magnolia.cms.core.Content getContent()

getNodeTypes

public String getNodeTypes()

setNodeTypes

public void setNodeTypes(String nodeTypes)

getDialog

public String getDialog()

setDialog

public void setDialog(String dialog)

isHierarchy

public boolean isHierarchy()

setHierarchy

public void setHierarchy(boolean hierarchy)

getName

public String getName()

setName

public void setName(String name)

getRootPath

public String getRootPath()

setRootPath

public void setRootPath(String rootPath)

isSortedByName

@Deprecated
public boolean isSortedByName()
Deprecated. Since 1.4. Use isSortByName() instead.


setSortedByName

@Deprecated
public void setSortedByName(boolean sortedByName)
Deprecated. Since 1.4. Use setSortByName(boolean) instead.


isSortByName

public boolean isSortByName()

setSortByName

public void setSortByName(boolean sortByName)

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

getMenuTitle

public String getMenuTitle()

setMenuTitle

public void setMenuTitle(String menuTitle)

getTree

public String getTree()

setTree

public void setTree(String tree)

getIcon

public String getIcon()
Tries to get the icon stored within the type.

Returns:
the stored icon or cubes.gif

getLevel

public int getLevel()
Type levels are 1 based. The top type has a level of value 1.


setLevel

public void setLevel(int level)
Type levels are 1 based. The top type has a level of value 1.


getImage

public String getImage()

setImage

public void setImage(String image)

getParentName

public String getParentName()

setParentName

public void setParentName(String parentName)

getTypePath

public String getTypePath()

setTypePath

public void setTypePath(String typePath)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Magnolia International Ltd.. All Rights Reserved.