public final class StringValue extends Value
This class is immutable.
BooleanValue,
HexValue,
LongValue,
StreamValue,
Serialized Form| Constructor and Description |
|---|
StringValue(Syntax syntax,
java.lang.String str)
Constructor that uses a String object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getObjectValue()
Returns the value as an Object of instance String.
|
java.lang.String |
getValue()
Returns the value as a String.
|
boolean |
isLegalString(java.lang.String str)
Determines if a String contains only characters supported by
the associated syntax.
|
compareTo, equals, getSyntax, isWithinBounds, toStringpublic StringValue(Syntax syntax, java.lang.String str)
This constructor should be called only by a syntax strategy for data types that store data as strings.
syntax - Associated syntax for this String value.
The strategy associated with the syntax must extend StringStrategy, or an internal error will be thrown.
str - The String object.StringStrategypublic java.lang.String getValue()
public java.lang.Object getObjectValue()
getObjectValue in class Valuepublic boolean isLegalString(java.lang.String str)
str - The String being checked.
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.