com.davisor.data
Class URLTextData
java.lang.Object
com.davisor.data.VoidData
com.davisor.data.VoidValue
com.davisor.data.GenericValue
com.davisor.data.TextData
com.davisor.data.URLTextData
- All Implemented Interfaces:
- java.lang.Comparable, Data, DataValue, com.davisor.core.Dupable, java.io.Serializable, SerializableData
- public class URLTextData
- extends TextData
URLTextData represents URL-encoded text data.
- Since:
- JDK1.1
- See Also:
URLTextType,
Serialized Form
|
Constructor Summary |
URLTextData()
Default constructor. |
URLTextData(TextType type,
java.lang.String value)
Creates a new text data object with the given text type and value. |
URLTextData(TextType type,
java.lang.String value,
java.text.ParsePosition status)
Creates a new text data object with the given text type and value. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.davisor.data.Data |
getType |
URLTextData
public URLTextData()
- Default constructor. Creates a new text data object with the
default
URLTextType.DEFAULT type.
- See Also:
URLTextType
URLTextData
public URLTextData(TextType type,
java.lang.String value)
throws InvalidDataException
- Creates a new text data object with the given text type and value.
- Parameters:
type - the type of datavalue - string value (may be null)
- Throws:
InvalidDataException - if the value was invalid- See Also:
TextData.TextData(TextType,String,ParsePosition)
URLTextData
public URLTextData(TextType type,
java.lang.String value,
java.text.ParsePosition status)
throws InvalidDataException
- Creates a new text data object with the given text type and value.
- Parameters:
type - the type of datavalue - string value (may be null)status - parse status (may be null)
- Throws:
InvalidDataException - if the value was invalid- See Also:
TextData.setValue(String,ParsePosition)
add
public DataValue add(DataValue value)
throws InvalidDataException
- Adds data values.
- Specified by:
add in interface DataValue- Overrides:
add in class TextData
- Parameters:
value - a data value to be added to this data value
- Returns:
- a new data object, sharing the current type of this object
- Throws:
InvalidDataException - if the data values cannot be added.
sub
public DataValue sub(DataValue value)
throws InvalidDataException
- Substracts a data value.
- Specified by:
sub in interface DataValue- Overrides:
sub in class TextData
- Parameters:
value - a data value to be substracted from this data value
- Returns:
- a new data object, sharing the current type of this object
- Throws:
InvalidDataException - if the value cannot be
substracted.
Copyright © 2001-2004 Davisor Oy. All Rights Reserved.