Package adams.core.base
Class MavenRepository
- java.lang.Object
-
- adams.core.base.BaseObject
-
- adams.core.base.AbstractBaseString
-
- adams.core.base.MavenRepository
-
- All Implemented Interfaces:
CloneHandler<BaseObject>
,Serializable
,Comparable
public class MavenRepository extends AbstractBaseString
Encapsulates Maven repositories.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
SEPARATOR
-
Fields inherited from class adams.core.base.BaseObject
m_Internal, m_Properties, SUFFIX_DISPLAY, SUFFIX_VALUE
-
-
Constructor Summary
Constructors Constructor Description MavenRepository()
Initializes the string with length 0.MavenRepository(String s)
Initializes the object with the string to parse.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getPart(int index)
Returns the specified part of the coordinate triplet.String
getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).String
idValue()
Returns the ID part, if possible.boolean
isValid(String value)
Checks whether the string value is a valid presentation for this class.String
nameValue()
Returns the name part, if possible.String
stringValue()
Returns the backquoted String value.String
urlValue()
Returns the URL part, if possible.-
Methods inherited from class adams.core.base.AbstractBaseString
convert, getValue, initialize, isEmpty, length, setValue
-
Methods inherited from class adams.core.base.BaseObject
compareTo, equals, getClone, getInternal, getTemplates, getUnicode, hasFavoritesSupport, hashCode, isValidUnicode, newInstance, setUnicode, toObjectArray, toObjectArray, toString, toStringArray, toStringList
-
-
-
-
Field Detail
-
SEPARATOR
public static final String SEPARATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MavenRepository
public MavenRepository()
Initializes the string with length 0.
-
MavenRepository
public MavenRepository(String s)
Initializes the object with the string to parse.- Parameters:
s
- the string 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
-
getPart
protected String getPart(int index)
Returns the specified part of the coordinate triplet.- Parameters:
index
- the index from the triplet to return- Returns:
- the value or empty string if invalid string or index
-
idValue
public String idValue()
Returns the ID part, if possible.- Returns:
- the ID
-
nameValue
public String nameValue()
Returns the name part, if possible.- Returns:
- the name
-
urlValue
public String urlValue()
Returns the URL part, if possible.- Returns:
- the URL
-
stringValue
public String stringValue()
Returns the backquoted String value.- Overrides:
stringValue
in classAbstractBaseString
- Returns:
- the backquoted String value
-
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
-
-