org.mmbase.framework
Class Block.Type
java.lang.Object
org.mmbase.framework.Block.Type
- All Implemented Interfaces:
- Comparable<Block.Type>
- Enclosing class:
- Block
public static class Block.Type
- extends Object
- implements Comparable<Block.Type>
Every block can be assigned a hierarchal 'Type', which can classify it.
ROOT
public static final Block.Type ROOT
NO
public static final Block.Type NO
- All unclassified blocks are of this type
subs
final List<Block.Type> subs
blocks
final List<Block.BlockContainer> blocks
Block.Type
protected Block.Type(String n,
Block.Type p)
getClassification
public static Block.Type[] getClassification(String p,
boolean create)
- Javadoc:
getWeightedClassification
static Collection<Block.BlockContainer> getWeightedClassification(Block b,
String p)
getSubTypes
public List<Block.Type> getSubTypes()
getBlocks
public List<Block> getBlocks()
getName
public String getName()
setWeight
public void setWeight(int w)
getWeight
public int getWeight()
contains
public boolean contains(String test)
- To Do:
getParent
public Block.Type getParent()
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
compareTo
public int compareTo(Block.Type t)
- Specified by:
compareTo in interface Comparable<Block.Type>
getTitle
public LocalizedString getTitle()
MMBase 2.0-SNAPSHOT - null