de.init.its.api.spi
Interface IitsAttributeManager

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ItsAttributeManager

public interface IitsAttributeManager
extends java.io.Serializable

Support class for reading the configuration file, that defines a list of supported ITS markup

Author:
mkandora

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
 ItsError validate(java.lang.String itsAttributeName, java.lang.String itsAttributeValue)
          Validates a new itsAttribute for correctness
 

Method Detail

getAttribute

IitsAttribute getAttribute(java.lang.String itsAttributeName)
                           throws UnsupportedItsAttributeException
returns the respective IitsAttribute as a copy

Parameters:
itsAttributeName - the plain name of the its attribute
Returns:
an IitsAttribute
Throws:
UnsupportedItsAttributeException

getAttribute

IitsAttribute getAttribute(ItsAttributes attribute)
                           throws UnsupportedItsAttributeException
returns the respective IitsAttribute from predefined ItsAttributes as a copy

Parameters:
attribute - the ItsAttributes enum
Returns:
an IitsAttribute
Throws:
UnsupportedItsAttributeException

getAllAvailableAttributes

java.util.Collection<IitsAttribute> getAllAvailableAttributes()
Returns all available its attribute as provided by the configuration

Returns:
a collection with IitsAttribute

validate

ItsError validate(java.lang.String itsAttributeName,
                  java.lang.String itsAttributeValue)
Validates a new itsAttribute for correctness

Returns: