Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.opencms.template.cache
Class CmsElementDefinitionCollection  view CmsElementDefinitionCollection download CmsElementDefinitionCollection.java

java.lang.Object
  extended bycom.opencms.template.cache.CmsElementDefinitionCollection

public class CmsElementDefinitionCollection
extends java.lang.Object

Used to collect a set of element definitions. Two CmsElementDefinitionCollections can be merged using the join constructor.


Field Summary
private  java.util.Hashtable m_eldefs
          Hashtable for storing all definitions
 
Constructor Summary
CmsElementDefinitionCollection()
          Default constructor
CmsElementDefinitionCollection(CmsElementDefinitionCollection primary, CmsElementDefinitionCollection secondary)
          Join cunstructor.
 
Method Summary
 void add(CmsElementDefinition def)
          Add a definition to the collection.
 CmsElementDefinition get(java.lang.String name)
          Geta definition from the collection.
 java.util.Enumeration getAllElementNames()
           
 java.lang.String toString()
          Get a string representation of this collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_eldefs

private java.util.Hashtable m_eldefs
Hashtable for storing all definitions

Constructor Detail

CmsElementDefinitionCollection

public CmsElementDefinitionCollection()
Default constructor


CmsElementDefinitionCollection

public CmsElementDefinitionCollection(CmsElementDefinitionCollection primary,
                                      CmsElementDefinitionCollection secondary)
Join cunstructor. Two CmsElementDefinitionCollections can be merged using this constructor. If a definition is defined in both source collections the single parts of this definitions will be merged. If a part of a definition is defined twice, the collection primary will be preferred.

Method Detail

add

public void add(CmsElementDefinition def)
Add a definition to the collection.


get

public CmsElementDefinition get(java.lang.String name)
Geta definition from the collection.


getAllElementNames

public java.util.Enumeration getAllElementNames()

toString

public java.lang.String toString()
Get a string representation of this collection.