Package adams.db
Class JdbcUrl
- java.lang.Object
-
- adams.core.base.BaseObject
-
- adams.core.base.AbstractBaseString
-
- adams.db.JdbcUrl
-
- All Implemented Interfaces:
CloneHandler<BaseObject>
,Serializable
,Comparable
public class JdbcUrl extends AbstractBaseString
Encapsulates a JDBC URL Performs some minimal checks.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_URL
-
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).boolean
hasFavoritesSupport()
Whether this object should have favorites support.boolean
isValid(String value)
Checks whether the string value is a valid presentation for this class.-
Methods inherited from class adams.core.base.AbstractBaseString
convert, getValue, initialize, isEmpty, length, setValue, stringValue
-
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_URL
public static final String DEFAULT_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JdbcUrl
public JdbcUrl()
Initializes with a default URL.
-
JdbcUrl
public JdbcUrl(String s)
Initializes the object with the URL to parse.- Parameters:
s
- the URL to parse
-
-
Method Detail
-
isValid
public boolean isValid(String value)
Checks whether the string value is a valid presentation for this class.- Overrides:
isValid
in classAbstractBaseString
- Parameters:
value
- the string value to check- Returns:
- true if non-null
-
getTipText
public String getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).- Specified by:
getTipText
in classAbstractBaseString
- 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
-
-