org.fcrepo.server.security.xacml.util
Class AttributeBean

java.lang.Object
  extended by org.fcrepo.server.security.xacml.util.AttributeBean

public class AttributeBean
extends Object

This utility class provides a container for the basic information of an Attribute.

Author:
nishen@melcoe.mq.edu.au

Constructor Summary
AttributeBean()
          Default constructor.
AttributeBean(String id, String type, Set<String> values)
          The parameterised constructor that creates a n object with values initialised.
 
Method Summary
 void addValue(String value)
          Adds a value for this attribute.
 boolean equals(Object obj)
           
 String getId()
           
 String getType()
           
 Set<String> getValues()
           
 int hashCode()
           
 void setId(String id)
           
 void setType(String type)
           
 void setValues(Set<String> values)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeBean

public AttributeBean()
Default constructor.


AttributeBean

public AttributeBean(String id,
                     String type,
                     Set<String> values)
The parameterised constructor that creates a n object with values initialised.

Parameters:
id - the XACML id of the Attribute
type - the XML schema type of the Attribute
values - the values of the Attribute
Method Detail

getId

public String getId()
Returns:
the id

setId

public void setId(String id)
Parameters:
id - the id to set

getType

public String getType()
Returns:
the type

setType

public void setType(String type)
Parameters:
type - the type to set

getValues

public Set<String> getValues()
Returns:
the value

setValues

public void setValues(Set<String> values)
Parameters:
values - the value to set

addValue

public void addValue(String value)
Adds a value for this attribute.

Parameters:
value -

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012 DuraSpace. All Rights Reserved.