net.geant.edugain.base
Class AttributeValues

java.lang.Object
  extended by net.geant.edugain.base.AttributeValues
All Implemented Interfaces:
java.io.Serializable

public class AttributeValues
extends java.lang.Object
implements java.io.Serializable

Defines an edugain attribute list.

Version:
1.0
Author:
Jose Manuel Macias, Jaime Perez
See Also:
Serialized Form

Field Summary
static javax.xml.namespace.QName EDUGAIN_NAMESPACE_RESULT_ATTRIBUTE_RELEASE_POLICY_ACCEPT
          Release policy for this attribute match
static javax.xml.namespace.QName EDUGAIN_NAMESPACE_RESULT_ATTRIBUTE_RELEASE_POLICY_REJECT
          Release policy for this attribute did not match
protected  java.lang.String name
          The name of the attribute.
protected  java.lang.String namespace
          The namespace of the attribute.
protected  javax.xml.namespace.QName policy
          Accept (if the release policy for this attribute matched) or Reject (if the release policy for this attribute did not match).
protected  java.util.List<java.lang.String> values
          A list of values of the attribute.
 
Constructor Summary
AttributeValues()
          Creates a new instance of AttributeValues
AttributeValues(java.lang.String namespace, java.lang.String name, java.lang.String[] values)
          Creates a new instance of AttributeValues and initializes the object
 
Method Summary
 void addValue(java.lang.String value)
          Adds the value to the list.
 java.lang.String getName()
          Gets the namespace of the attribute
 java.lang.String getNameSpace()
          Gets the namespace of the attribute
 javax.xml.namespace.QName getPolicyResult()
          Gets the the attribute release policy value
 java.util.List<java.lang.String> getValues()
          Gets the attribute value
 void removeValue(java.lang.String value)
          Removes the value to the list.
 void setName(java.lang.String name)
          Sets the namespace of the attribute
 void setNameSpace(java.lang.String namespace)
          Sets the namespace of the attribute
 void setPolicyResult(javax.xml.namespace.QName value)
          Sets the the attribute release policy value
 void setValues(java.util.List<java.lang.String> value)
          Sets the attribute value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namespace

protected java.lang.String namespace
The namespace of the attribute.


name

protected java.lang.String name
The name of the attribute.


values

protected java.util.List<java.lang.String> values
A list of values of the attribute.


policy

protected javax.xml.namespace.QName policy
Accept (if the release policy for this attribute matched) or Reject (if the release policy for this attribute did not match).


EDUGAIN_NAMESPACE_RESULT_ATTRIBUTE_RELEASE_POLICY_ACCEPT

public static final javax.xml.namespace.QName EDUGAIN_NAMESPACE_RESULT_ATTRIBUTE_RELEASE_POLICY_ACCEPT
Release policy for this attribute match


EDUGAIN_NAMESPACE_RESULT_ATTRIBUTE_RELEASE_POLICY_REJECT

public static final javax.xml.namespace.QName EDUGAIN_NAMESPACE_RESULT_ATTRIBUTE_RELEASE_POLICY_REJECT
Release policy for this attribute did not match

Constructor Detail

AttributeValues

public AttributeValues()
Creates a new instance of AttributeValues


AttributeValues

public AttributeValues(java.lang.String namespace,
                       java.lang.String name,
                       java.lang.String[] values)
Creates a new instance of AttributeValues and initializes the object

Parameters:
namespace - The namespace for the attribute
name - The name of the attribute
values - The values for the attribute
Method Detail

getNameSpace

public java.lang.String getNameSpace()
Gets the namespace of the attribute


setNameSpace

public void setNameSpace(java.lang.String namespace)
Sets the namespace of the attribute


getName

public java.lang.String getName()
Gets the namespace of the attribute


setName

public void setName(java.lang.String name)
Sets the namespace of the attribute


getValues

public java.util.List<java.lang.String> getValues()
Gets the attribute value


addValue

public void addValue(java.lang.String value)
Adds the value to the list.

Parameters:
value - The value to add.

removeValue

public void removeValue(java.lang.String value)
Removes the value to the list.

Parameters:
value - The value to remove.

setValues

public void setValues(java.util.List<java.lang.String> value)
Sets the attribute value


getPolicyResult

public javax.xml.namespace.QName getPolicyResult()
Gets the the attribute release policy value


setPolicyResult

public void setPolicyResult(javax.xml.namespace.QName value)
Sets the the attribute release policy value