org.mmbase.framework
Class Block.Type

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


Field Summary
(package private)  List<Block.BlockContainer> blocks
           
static Block.Type NO
          All unclassified blocks are of this type
static Block.Type ROOT
           
(package private)  List<Block.Type> subs
           
 
Constructor Summary
protected Block.Type(String n, Block.Type p)
           
 
Method Summary
 int compareTo(Block.Type t)
           
 boolean contains(String test)
           
 boolean equals(Object o)
           
 List<Block> getBlocks()
           
static Block.Type[] getClassification(String p, boolean create)
           
 String getName()
           
 Block.Type getParent()
           
 List<Block.Type> getSubTypes()
           
 LocalizedString getTitle()
           
 int getWeight()
           
(package private) static Collection<Block.BlockContainer> getWeightedClassification(Block b, String p)
           
 int hashCode()
           
 void setWeight(int w)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Block.Type

protected Block.Type(String n,
                     Block.Type p)
Method Detail

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