Methods Summary |
---|
public boolean | equals(java.lang.Object object)
String s1 = object.toString();
return s1.equals(m_value);
|
public int | hashCode()
return m_value.hashCode();
|
public static boolean | isValid(java.lang.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.
int scan;
for (scan = 0; scan < stValue.length(); scan++) {
char cDigit = stValue.charAt(scan);
switch (cDigit) {
case 0x09:
case 0x0A:
case 0x0D:
return false;
default:
break;
}
}
return true;
|
public void | setValue(java.lang.String stValue)validates the data and sets the value for the object.
if (NormalizedString.isValid(stValue) == false)
throw new IllegalArgumentException(
Messages.getMessage("badNormalizedString00") +
" data=[" + stValue + "]");
m_value = stValue;
|
public java.lang.String | toString()
return m_value;
|