|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.davisor.data.VoidData
com.davisor.data.VoidValue
com.davisor.data.GenericValue
com.davisor.data.URLData
A URLData object represents a URL address. The address may also be null, indicating a missing or undetermined address.
URLType,
Serialized Form| Field Summary |
| Fields inherited from class com.davisor.data.VoidData |
M_type |
| Constructor Summary | |
URLData()
Default constructor. |
|
URLData(URLData data,
boolean deep)
Deep or shallow copy constructor. |
|
URLData(URLType type,
java.lang.String stringValue,
java.text.ParsePosition status)
Creates a URL data value from a string value. |
|
URLData(URLType type,
java.net.URL value)
Creates a new URL data object with the given URL type and value. |
|
| Method Summary | |
DataValue |
add(DataValue value)
Adds data values. |
int |
compareTo(java.lang.Object o)
Compares this data with other data objects. |
double |
deinterpolate(DataValue min,
DataValue max)
De-interpolates the current data value to a scalar value, in respect, with the given data value range. |
com.davisor.core.Dupable |
dup()
Makes a deep copy of this object. |
boolean |
equals(java.lang.Object o)
Tests if this object is equal with another object. |
java.lang.String |
getFormat()
Gets the type specification optimal for this particular value. |
java.net.URL |
getValue()
Gets the URL value. |
int |
hashCode()
Returns a hash code value for the object. |
DataValue |
interpolate(double value,
DataValue max)
Interpolates the given scalar value to data value, in respect, with the range defined by this value and the given maximum value. |
boolean |
isNull()
Tests if this data object value is undetermined. |
void |
setValue(java.lang.String stringValue,
java.text.ParsePosition status)
Sets data value from a string value. |
void |
setValue(java.net.URL value)
Sets the URL value. |
DataValue |
sub(DataValue value)
Substracts a data value. |
java.lang.String |
toString()
Gets the string representation of current URL value. |
DataValue |
unit(DataValue targetValue,
double maxSteps)
Gets the largest suitable unit step to represent a value change between this value and the given target value. |
| Methods inherited from class com.davisor.data.GenericValue |
max, min, toStatement, toXML |
| Methods inherited from class com.davisor.data.VoidValue |
abs, ceil, div, floor, mul, negate |
| Methods inherited from class com.davisor.data.VoidData |
getDataValue, getType, setType |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.davisor.data.Data |
getType |
| Constructor Detail |
public URLData()
URLType.DEFAULT type.
URLType
public URLData(URLData data,
boolean deep)
data - source data (may be null)deep - determines if the copying is deep or shallowVoidData.getType(),
Type.dup()
public URLData(URLType type,
java.net.URL value)
type - url typevalue - url value (may be null)
public URLData(URLType type,
java.lang.String stringValue,
java.text.ParsePosition status)
throws InvalidDataException
stringValue - string value to be parsedstatus - parse status (may be null)
InvalidDataException - if string value could not be parsersetValue(String,ParsePosition)| Method Detail |
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparablecompareTo in class GenericValueGenericValue.max(com.davisor.data.DataValue),
GenericValue.min(com.davisor.data.DataValue),
Compare.compareTo(Object,Object)public boolean isNull()
isNull in interface SerializableDataisNull in class VoidValuetrue
public DataValue add(DataValue value)
throws InvalidDataException
add in interface DataValueadd in class VoidValuevalue - a data value to be added to this data value
InvalidDataException - if the data values cannot be added.
public double deinterpolate(DataValue min,
DataValue max)
throws InvalidDataException
URL values do not support this operation, but they always throw an
InvalidDataException instead.
deinterpolate in interface DataValuedeinterpolate in class VoidValuemin - a data value representing a range's lower limitmax - a data value representing a range's higher limit
InvalidDataException - if the de-interpolation failspublic java.lang.String getFormat()
The URL data optimal specification string is always null.
getFormat in interface DataValuegetFormat in class VoidValueData.getType(),
FormatType.getFormat(),
FormatType.setFormat(java.util.Locale, java.lang.String)
public DataValue interpolate(double value,
DataValue max)
throws InvalidDataException
URL values do not support this operation, but they always throw an
InvalidDataException instead.
interpolate in interface DataValueinterpolate in class VoidValuevalue - the scalar value to be interpolatedmax - a data value representing a range's higher limit
InvalidDataException - if interpolation fails
public void setValue(java.lang.String stringValue,
java.text.ParsePosition status)
throws InvalidDataException
setValue in interface DataValuesetValue in class VoidValuestringValue - string value to be parsed (may be null)status - parse status (may be null)
InvalidDataException - if string value could not be parserURLType.urlValue(String,ParsePosition)
public DataValue sub(DataValue value)
throws InvalidDataException
sub in interface DataValuesub in class VoidValuevalue - a data value to be substracted from this data value
InvalidDataException - if the value cannot be
substracted.public java.lang.String toString()
toString in interface DataValuetoString in class VoidData
public DataValue unit(DataValue targetValue,
double maxSteps)
throws InvalidDataException
URL data does not support the concept of unit values. Calling this method raises a runtime error.
unit in interface DataValueunit in class VoidValuetargetValue - target value to be reached (may be null)maxSteps - maximum number of steps (zero leaves the choise open)
InvalidDataException - if target value is unsuitablepublic com.davisor.core.Dupable dup()
dup in interface com.davisor.core.Dupabledup in class VoidValuepublic boolean equals(java.lang.Object o)
URL data objects are equal if their super-classes and URL values are.
equals in class VoidDataCompare.equals(Object,Object)public int hashCode()
hashCode in class VoidDatapublic java.net.URL getValue()
setValue(java.lang.String, java.text.ParsePosition)public void setValue(java.net.URL value)
value - url value (may be null)getValue()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||