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.

Author:
Jose Manuel Macias
See Also:
Serialized Form

Field Summary
protected  java.lang.String attributeName
          The attribute name
protected  java.lang.String attributeNameSpace
          The attribute namespace
protected  java.util.ArrayList<java.lang.String> attributeValue
          The attribute value(s)
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  javax.xml.namespace.QName policyResult
          Accept (if the release policy for this attribute matched) or Reject (if the release policy for this attribute did not match).
 
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 name, java.lang.String value)
          Adds a value to the list
 java.lang.String getAttributeName()
          Gets the namespace of the attribute
 java.lang.String getAttributeNameSpace()
          Gets the namespace of the attribute
 java.util.ArrayList<java.lang.String> getAttributeValue()
          Gets the attribute value
 javax.xml.namespace.QName getPolicyResult()
          Gets the the attribute release policy value
 void setAttributeName(java.lang.String name)
          Sets the namespace of the attribute
 void setAttributeNameSpace(java.lang.String namespace)
          Sets the namespace of the attribute
 void setAttributeValue(java.util.ArrayList<java.lang.String> value)
          Sets the attribute value
 void setPolicyResult(javax.xml.namespace.QName value)
          Sets the the attribute release policy value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributeNameSpace

protected java.lang.String attributeNameSpace
The attribute namespace


attributeName

protected java.lang.String attributeName
The attribute name


attributeValue

protected java.util.ArrayList<java.lang.String> attributeValue
The attribute value(s)


policyResult

protected javax.xml.namespace.QName policyResult
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

setAttributeNameSpace

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


getAttributeNameSpace

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


setAttributeName

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


getAttributeName

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


setAttributeValue

public void setAttributeValue(java.util.ArrayList<java.lang.String> value)
Sets the attribute value


getAttributeValue

public java.util.ArrayList<java.lang.String> getAttributeValue()
Gets the attribute value


setPolicyResult

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


getPolicyResult

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


addValue

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