org.pf.directory.metadata
Class AttributeMetaData

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

public class AttributeMetaData
extends java.lang.Object

Provides meta information about an attribute. The link to the attribute is its (unique) name.

Version:
1.0
Author:
M.Duchrow

Constructor Summary
AttributeMetaData(java.lang.String name)
          Initialize the new instance with its name.
 
Method Summary
 void beMultiValued()
          Defines that the attribute allows multiple values
 void beSingleValued()
          Defines that the attribute allows only a single value
 java.lang.String getAttrName()
           
 boolean isMultiValues()
          Returns true if the attribute allows multiple values
 boolean isSingleValued()
          Returns true if the attribute allows only a single value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeMetaData

public AttributeMetaData(java.lang.String name)
Initialize the new instance with its name.

Method Detail

getAttrName

public java.lang.String getAttrName()

beSingleValued

public void beSingleValued()
Defines that the attribute allows only a single value


beMultiValued

public void beMultiValued()
Defines that the attribute allows multiple values


isSingleValued

public boolean isSingleValued()
Returns true if the attribute allows only a single value


isMultiValues

public boolean isMultiValues()
Returns true if the attribute allows multiple values