Package adams.core.base
Class MavenArtifactExclusion
- java.lang.Object
-
- adams.core.base.BaseObject
-
- adams.core.base.AbstractBaseString
-
- adams.core.base.MavenArtifactExclusion
-
- All Implemented Interfaces:
CloneHandler<BaseObject>,Serializable,Comparable
public class MavenArtifactExclusion extends AbstractBaseString
Encapsulates Maven artifact exclusions.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSEPARATOR-
Fields inherited from class adams.core.base.BaseObject
m_Internal, m_Properties, SUFFIX_DISPLAY, SUFFIX_VALUE
-
-
Constructor Summary
Constructors Constructor Description MavenArtifactExclusion()Initializes the string with length 0.MavenArtifactExclusion(String s)Initializes the object with the string to parse.MavenArtifactExclusion(String groupId, String artifactId)Initializes the object with the artifact coordinates.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringartifactIdValue()Returns the artifact ID part, if possible.protected StringgetPart(int index)Returns the specified part of the coordinate triplet.StringgetTipText()Returns a tool tip for the GUI editor (ignored if null is returned).StringgroupIdValue()Returns the group ID part, if possible.booleanisValid(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, 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
-
MavenArtifactExclusion
public MavenArtifactExclusion()
Initializes the string with length 0.
-
MavenArtifactExclusion
public MavenArtifactExclusion(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:
isValidin 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
-
groupIdValue
public String groupIdValue()
Returns the group ID part, if possible.- Returns:
- the group ID
-
artifactIdValue
public String artifactIdValue()
Returns the artifact ID part, if possible.- Returns:
- the artifact ID
-
getTipText
public String getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).- Specified by:
getTipTextin classAbstractBaseString- Returns:
- the tool tip
-
-