de.init.its.spi
Class ItsAttributeManager

java.lang.Object
  extended by de.init.its.spi.ItsAttributeManager
All Implemented Interfaces:
IitsAttributeManager, java.io.Serializable

public class ItsAttributeManager
extends java.lang.Object
implements IitsAttributeManager, java.io.Serializable

Implementation of IitsAttributeManager

Author:
mkandora
See Also:
Serialized Form

Method Summary
 java.util.Collection<IitsAttribute> getAllAvailableAttributes()
          Returns all available its attribute as provided by the configuration
 IitsAttribute getAttribute(ItsAttributes attribute)
          returns the respective IitsAttribute from predefined ItsAttributes as a copy
 IitsAttribute getAttribute(java.lang.String itsAttributeName)
          returns the respective IitsAttribute as a copy
static IitsAttributeManager getManager(java.lang.String configFileName)
          Returns a singleton instance of the IitsAttributeManager
 ItsError validate(java.lang.String itsAttributeName, java.lang.String itsAttributeValue)
          Validates a new itsAttribute for correctness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getManager

public static IitsAttributeManager getManager(java.lang.String configFileName)
Returns a singleton instance of the IitsAttributeManager

Parameters:
configuration - file in classpath
Returns:
a singleton instance of the ItsAttributeManager

getAttribute

public IitsAttribute getAttribute(java.lang.String itsAttributeName)
                           throws UnsupportedItsAttributeException
Description copied from interface: IitsAttributeManager
returns the respective IitsAttribute as a copy

Specified by:
getAttribute in interface IitsAttributeManager
Parameters:
itsAttributeName - the plain name of the its attribute
Returns:
an IitsAttribute
Throws:
UnsupportedItsAttributeException

getAttribute

public IitsAttribute getAttribute(ItsAttributes attribute)
                           throws UnsupportedItsAttributeException
Description copied from interface: IitsAttributeManager
returns the respective IitsAttribute from predefined ItsAttributes as a copy

Specified by:
getAttribute in interface IitsAttributeManager
Parameters:
attribute - the ItsAttributes enum
Returns:
an IitsAttribute
Throws:
UnsupportedItsAttributeException

getAllAvailableAttributes

public java.util.Collection<IitsAttribute> getAllAvailableAttributes()
Description copied from interface: IitsAttributeManager
Returns all available its attribute as provided by the configuration

Specified by:
getAllAvailableAttributes in interface IitsAttributeManager
Returns:
a collection with IitsAttribute

validate

public ItsError validate(java.lang.String itsAttributeName,
                         java.lang.String itsAttributeValue)
Description copied from interface: IitsAttributeManager
Validates a new itsAttribute for correctness

Specified by:
validate in interface IitsAttributeManager
Returns: