org.pf.directory.metadata
Class AttributesMetaData

java.lang.Object
  extended by org.pf.directory.metadata.AttributesMetaData

public class AttributesMetaData
extends java.lang.Object

A container for a collection of AttributeMetaData objects.

Version:
1.0
Author:
M.Duchrow

Constructor Summary
AttributesMetaData()
          Initialize the new instance with default values.
 
Method Summary
 AttributeMetaData attributeMetaData(java.lang.String attrName)
          Returns the meta data for the given attribute name.
 AttributeMetaData getMetaData(java.lang.String attrName)
          Returns the meta data for the given attribute name.
 AttributeMetaData removeMetaData(java.lang.String attrName)
          Removes the meta data for the given attribute name.
 void setMetaData(AttributeMetaData metaData)
          Adds the given meta data or replaces one with the same name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesMetaData

public AttributesMetaData()
Initialize the new instance with default values.

Method Detail

setMetaData

public void setMetaData(AttributeMetaData metaData)
Adds the given meta data or replaces one with the same name.


getMetaData

public AttributeMetaData getMetaData(java.lang.String attrName)
Returns the meta data for the given attribute name.

Parameters:
attrName - The (case-insensitive) name of the attribute
Returns:
The found metadata or null

removeMetaData

public AttributeMetaData removeMetaData(java.lang.String attrName)
Removes the meta data for the given attribute name.

Parameters:
attrName - The (case-insensitive) name of the attribute
Returns:
The removed metadata or null

attributeMetaData

public AttributeMetaData attributeMetaData(java.lang.String attrName)
Returns the meta data for the given attribute name. If it already exists that will be returned otherwise a new meta data object with the given name is created and returned.

Parameters:
attrName - The (case-insensitive) name of the attribute
Returns:
The found metadata for the given attribute name