no.feide.moria.webservices.v2_2
Class Attribute

java.lang.Object
  extended by no.feide.moria.webservices.v2_2.Attribute
All Implemented Interfaces:
java.io.Serializable

public final class Attribute
extends java.lang.Object
implements java.io.Serializable

Version:
$Revision: 1.3 $
Author:
Bjørn Ola Smievoll <b.o.smievoll@conduct.no>
See Also:
Serialized Form

Field Summary
private  java.lang.String name
          The name of this Attribute.
private  java.lang.String separator
          The actual separator character(s) used for encoding.
private static long serialVersionUID
          Serial version UID (generated).
private  java.lang.String values
          The encoded values of this Attribute.
 
Constructor Summary
Attribute()
           
 
Method Summary
 java.lang.String getName()
          Gets the name of this attribute.
 java.lang.String getSeparator()
          Get the actual separator value used for encoding the attribute values.
 java.lang.String getValues()
          Get the encoded String containing the values of the attribute, separated by separator.
 void setName(java.lang.String name)
          Sets the name of the attribute.
 void setSeparator(java.lang.String separator)
          Set the actual separator value used for encoding the attribute values.
 void setValues(java.lang.String values)
          Sets the values for the attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version UID (generated).

See Also:
Constant Field Values

name

private java.lang.String name
The name of this Attribute.


separator

private java.lang.String separator
The actual separator character(s) used for encoding. Added as a field to allow it to be visible across SOAP calls.


values

private java.lang.String values
The encoded values of this Attribute.

Constructor Detail

Attribute

public Attribute()
Method Detail

getName

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

Returns:
Returns the name.

setName

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

Parameters:
name - The name to set.

getSeparator

public java.lang.String getSeparator()
Get the actual separator value used for encoding the attribute values.

Returns:
The separator character(s).

setSeparator

public void setSeparator(java.lang.String separator)
Set the actual separator value used for encoding the attribute values.

Parameters:
separator - The separator character(s).

getValues

public java.lang.String getValues()
Get the encoded String containing the values of the attribute, separated by separator. All natural occurences of separator in the original values will show up as two separator character sequences. Be sure to check the actual separator value using getSeparator().

Returns:
The value array.
See Also:
getSeparator()

setValues

public void setValues(java.lang.String values)
Sets the values for the attribute. Must use the separator (given by getSeparator()) between the values, and any natural occurences of the separator in an attribute value must be replaced with two subsequent occurences of the separator.

Parameters:
values - The values to set.
See Also:
getSeparator()


Copyright © 2001-2006 UNINETT FAS. All Rights Reserved.