com.sapportals.portal.prt.service.soap.types
Class NormalizedString

java.lang.Object
  |
  +--com.sapportals.portal.prt.service.soap.types.NormalizedString

public class NormalizedString
extends java.lang.Object

Title : SAP Entreprise Portal EP6.0
Description: Type String normalized which to allow to encode the xml data (tags) under string form whit the XML characters enconded
For further information, please see; http://www.w3.org/TR/2001/WD-xquery-operators-20010827/ Project : soap
FileName : NormalizedString.java
Copyright : SAP Copyright (c) 2003
Company : SAP GBU IP

Version:
Mar 31, 2003 1.0

Constructor Summary
NormalizedString()
          Creates a new NormalizedString object.
NormalizedString(java.lang.String content)
          Creates a new NormalizedString object.
NormalizedString(java.lang.String content, boolean bool)
          Creates a new NormalizedString object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getContentNoNormalized()
          return the string wihtout normalization
 java.lang.String getContentNormalized()
          return the string wiht the normalization
 void setContentNoNormalized(java.lang.String content)
          set the content no normalized and if the content normalized equals at null it is initialized
 void setContentNormalized(java.lang.String content)
          set the content normalized and if the content no normalized equals at null it is initialized
 java.lang.String toString()
           
static boolean validateNormalizedStringRepresentation(java.lang.String s)
          validates the lexical representation of s : illegal characters are "carriage return", "Line feed" nor "tab", see http://www.w3.org/2001/05/xmlschema-errata#Errata2
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NormalizedString

public NormalizedString()
Creates a new NormalizedString object.

NormalizedString

public NormalizedString(java.lang.String content)
Creates a new NormalizedString object.
Parameters:
content - the string data no normalized

NormalizedString

public NormalizedString(java.lang.String content,
                        boolean bool)
Creates a new NormalizedString object.
Parameters:
content - the string data to be normalized
bool - a validation parameter: if bool is true, checks the lexical representation of content (illegal characters as Carriage return, Line feed or Tab are not allowed) if bool is false and if the lexical representation has mistakes, illegal characters will be skipped
Throws:
java.lang.IllegalArgumentException - if illegal character is detected
Method Detail

getContentNoNormalized

public java.lang.String getContentNoNormalized()
return the string wihtout normalization
Returns:
the value

getContentNormalized

public java.lang.String getContentNormalized()
return the string wiht the normalization
Returns:
the value

setContentNoNormalized

public void setContentNoNormalized(java.lang.String content)
set the content no normalized and if the content normalized equals at null it is initialized
Parameters:
content - the value to affect

setContentNormalized

public void setContentNormalized(java.lang.String content)
set the content normalized and if the content no normalized equals at null it is initialized
Parameters:
content - the value to affect

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

validateNormalizedStringRepresentation

public static boolean validateNormalizedStringRepresentation(java.lang.String s)
                                                      throws java.lang.IllegalArgumentException
validates the lexical representation of s : illegal characters are "carriage return", "Line feed" nor "tab", see http://www.w3.org/2001/05/xmlschema-errata#Errata2
Parameters:
s -  
Throws:
java.lang.IllegalArgumentException - if illegal character is detected