Class NormalizedString

java.lang.Object
org.apache.axis2.databinding.types.NormalizedString
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Token

public class NormalizedString extends Object implements Serializable
Custom class for supporting XSD data type NormalizedString. normalizedString represents white space normalized strings. The base type of normalizedString is string.
See Also:
  • Constructor Details

  • Method Details

    • setValue

      public void setValue(String stValue) throws IllegalArgumentException
      validates the data and sets the value for the object.
      Parameters:
      stValue - String value
      Throws:
      IllegalArgumentException - if invalid format
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isValid

      public static boolean isValid(String stValue)
      validate the value against the xsd definition for the object

      The value space of normalizedString is the set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters. The lexical space of normalizedString is the set of strings that do not contain the carriage return (#xD) nor tab (#x9) characters.

      Parameters:
      stValue - the String to test
      Returns:
      Returns true if valid normalizedString.
    • equals

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