Package adams.core.base
Class BaseURI
- java.lang.Object
-
- adams.core.base.BaseObject
-
- adams.core.base.BaseURI
-
- All Implemented Interfaces:
CloneHandler<BaseObject>
,Serializable
,Comparable
public class BaseURI extends BaseObject
Wrapper for an URI object to be editable in the GOE.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_URI
the default URI.protected URI
m_Current
the current URI.-
Fields inherited from class adams.core.base.BaseObject
m_Internal, m_Properties, SUFFIX_DISPLAY, SUFFIX_VALUE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).String
getValue()
Returns the current string value.boolean
hasFavoritesSupport()
Whether this object should have favorites support.protected void
initialize()
Initializes the internal object.boolean
isValid(String value)
Checks whether the string value is a valid presentation for this class.void
setValue(String value)
Sets the string value.URI
uriValue()
Returns the URI value.-
Methods inherited from class adams.core.base.BaseObject
compareTo, equals, getClone, getInternal, getTemplates, getUnicode, hashCode, isValidUnicode, newInstance, setUnicode, toObjectArray, toObjectArray, toString, toStringArray, toStringList
-
-
-
-
Field Detail
-
DEFAULT_URI
public static final String DEFAULT_URI
the default URI.- See Also:
- Constant Field Values
-
m_Current
protected URI m_Current
the current URI.
-
-
Constructor Detail
-
BaseURI
public BaseURI()
Initializes the string with DEFAULT_URI.- See Also:
DEFAULT_URI
-
BaseURI
public BaseURI(String s)
Initializes the object with the string to parse.- Parameters:
s
- the string to parse
-
BaseURI
public BaseURI(URI value)
Initializes the object with the given value.- Parameters:
value
- the value to use
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the internal object.- Overrides:
initialize
in classBaseObject
-
isValid
public boolean isValid(String value)
Checks whether the string value is a valid presentation for this class.- Specified by:
isValid
in classBaseObject
- Parameters:
value
- the string value to check- Returns:
- true if valid URI
-
setValue
public void setValue(String value)
Sets the string value.- Specified by:
setValue
in classBaseObject
- Parameters:
value
- the string value
-
getValue
public String getValue()
Returns the current string value.- Specified by:
getValue
in classBaseObject
- Returns:
- the string value
-
uriValue
public URI uriValue()
Returns the URI value.- Returns:
- the URI value
-
getTipText
public String getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).- Specified by:
getTipText
in classBaseObject
- Returns:
- the tool tip
-
hasFavoritesSupport
public boolean hasFavoritesSupport()
Whether this object should have favorites support.- Overrides:
hasFavoritesSupport
in classBaseObject
- Returns:
- true if to support favorites
-
-