org.idoox.wasp.serialization.xsdbuiltin
Class NormalizedString

java.lang.Object
  extended byorg.idoox.wasp.serialization.xsdbuiltin.NormalizedString
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Token

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

Represent normalizedString type in the xsd built-in.

See Also:
Serialized Form
Component:
Core

Field Summary
protected  char[] prohibitedChars
          chars that are not allowed to be in this object
protected  java.lang.String value
          string value of this object
 
Constructor Summary
protected NormalizedString()
          An empty constructor.
  NormalizedString(java.lang.String value)
          Constructs a NormalizedString object.
 
Method Summary
protected  void check()
          Throws InvalidFormatException if this object is invalid.
 boolean equals(java.lang.Object o)
          Equals based on value of this.
 int hashCode()
           
 void set(java.lang.String value)
          Sets content of this object to a given value.
 java.lang.String toString()
          Returns this Object if it is correct.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected java.lang.String value
string value of this object


prohibitedChars

protected char[] prohibitedChars
chars that are not allowed to be in this object

Constructor Detail

NormalizedString

public NormalizedString(java.lang.String value)
                 throws InvalidFormatException
Constructs a NormalizedString object.

Parameters:
value - the string representation of a NormalizedString.
Throws:
InvalidFormatException - thrown if value is invalid.

NormalizedString

protected NormalizedString()
An empty constructor.

Method Detail

set

public void set(java.lang.String value)
         throws InvalidFormatException
Sets content of this object to a given value.

Parameters:
value - a given value that content of this Object is set to.
Throws:
InvalidFormatException - thrown if value is invalid.

toString

public java.lang.String toString()
Returns this Object if it is correct.

Returns:
String this Object.

check

protected void check()
              throws InvalidFormatException
Throws InvalidFormatException if this object is invalid.

Throws:
InvalidFormatException - thrown if value is invalid.

equals

public boolean equals(java.lang.Object o)
Equals based on value of this.


hashCode

public int hashCode()