pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.accesscontrol.attributes
Class AttributeFactory

java.lang.Object
  extended by org.torweg.pulse.accesscontrol.attributes.AttributeFactory
All Implemented Interfaces:
DeprecatedConfigurable

public class AttributeFactory
extends java.lang.Object
implements DeprecatedConfigurable

the factory for the attributes.

Version:
$Revision: 1914 $
Author:
Daniel Dietz, Thomas Weber

Constructor Summary
AttributeFactory()
           
 
Method Summary
 AbstractAttribute<?> getAttribute(java.lang.Class<AbstractAttribute<?>> clazz)
          returns an AbstractAttribute of the passed class.
 AbstractAttribute<?> getAttribute(java.lang.Class<AbstractAttribute<?>> clazz, boolean isSystem)
          returns an AbstractAttribute of the passed class.
 AbstractAttribute<?> getAttribute(java.lang.Class<AbstractAttribute<?>> clazz, java.lang.String name)
          returns an AbstractAttribute of the passed class.
 AbstractAttribute<?> getAttribute(java.lang.Class<AbstractAttribute<?>> clazz, java.lang.String name, boolean isSystem)
          returns an AbstractAttribute of the passed class.
 java.util.Set<java.lang.Class<AbstractAttribute<?>>> getAttributes()
          returns the classes of the known AbstractAttributes.
 java.util.Set<java.lang.Class<AbstractValue<?>>> getAttributeValues(java.lang.Class<AbstractAttribute<?>> clazz)
          returns the classes of the available AbstractValues for the passed AbstractAttribute-class.
 AbstractTypedCheck<?> getTypedCheck(java.lang.Class<AbstractTypedCheck<?>> c)
          returns an instance of the given check.
 java.util.Set<java.lang.Class<AbstractTypedCheck<?>>> getTypedChecks(java.lang.Class<AbstractAttribute<?>> clazz)
          returns a set with the available typed checks for the given attribute class.
 void init(ConfigBean c)
          initializes the AttributeFactory with the given ConfigBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeFactory

public AttributeFactory()
Method Detail

getAttributes

public final java.util.Set<java.lang.Class<AbstractAttribute<?>>> getAttributes()
returns the classes of the known AbstractAttributes.

Returns:
the classes of the known AbstractAttributes
See Also:
AttributeFactoryConfig.getAttributes()

getAttributeValues

public final java.util.Set<java.lang.Class<AbstractValue<?>>> getAttributeValues(java.lang.Class<AbstractAttribute<?>> clazz)
returns the classes of the available AbstractValues for the passed AbstractAttribute-class.

Parameters:
clazz - the attribute-Class to retrieve the values for
Returns:
the classes of the available AbstractValues for the passed AbstractAttribute-class
See Also:
AttributeFactoryConfig.getAttributeValues(java.lang.Class)

getTypedChecks

public final java.util.Set<java.lang.Class<AbstractTypedCheck<?>>> getTypedChecks(java.lang.Class<AbstractAttribute<?>> clazz)
returns a set with the available typed checks for the given attribute class.

Parameters:
clazz - the attribute class
Returns:
a set with the available checks

getTypedCheck

public final AbstractTypedCheck<?> getTypedCheck(java.lang.Class<AbstractTypedCheck<?>> c)
returns an instance of the given check.

Parameters:
c - the check class
Returns:
an instance of the check

getAttribute

public final AbstractAttribute<?> getAttribute(java.lang.Class<AbstractAttribute<?>> clazz)
returns an AbstractAttribute of the passed class.

Parameters:
clazz - the class to build the attribute of
Returns:
an AbstractAttribute of the passed class

getAttribute

public final AbstractAttribute<?> getAttribute(java.lang.Class<AbstractAttribute<?>> clazz,
                                               java.lang.String name)
returns an AbstractAttribute of the passed class.

Parameters:
clazz - the class to build the attribute of
name - the name to be set for the attribute
Returns:
an AbstractAttribute of the passed class

getAttribute

public final AbstractAttribute<?> getAttribute(java.lang.Class<AbstractAttribute<?>> clazz,
                                               boolean isSystem)
returns an AbstractAttribute of the passed class.

Parameters:
clazz - the class to build the attribute of
isSystem - specifies a system-attribute
Returns:
an AbstractAttribute of the passed class

getAttribute

public final AbstractAttribute<?> getAttribute(java.lang.Class<AbstractAttribute<?>> clazz,
                                               java.lang.String name,
                                               boolean isSystem)
returns an AbstractAttribute of the passed class.

Parameters:
clazz - the class to build the attribute of
name - the name to be set for the attribute
isSystem - specifies a system-attribute
Returns:
an AbstractAttribute of the passed class

init

public void init(ConfigBean c)
initializes the AttributeFactory with the given ConfigBean.

Specified by:
init in interface DeprecatedConfigurable
Parameters:
c - the ConfigBean
See Also:
DeprecatedConfigurable.init(org.torweg.pulse.configuration.ConfigBean)