|
|||||||||
| Home >> All >> org >> repoweb >> model >> [ file overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.repoweb.model.file
Class FArtifact

java.lang.Objectorg.repoweb.model.file.FArtifact
- All Implemented Interfaces:
- org.repoweb.model.Artifact
- class FArtifact
- extends java.lang.Object
- implements org.repoweb.model.Artifact
- extends java.lang.Object
Implementation of an artifact for file system.
| Field Summary | |
private java.lang.String |
_artifactId
|
private java.io.File |
_file
|
private java.lang.String |
_groupId
|
private java.lang.String |
_type
|
private java.lang.String |
_version
|
private static java.lang.String |
UNDEFINED
|
| Constructor Summary | |
(package private) |
FArtifact(java.io.File file)
|
| Method Summary | |
private void |
decodeArtifactId(java.lang.String fileName)
|
private java.lang.String |
decodeFileName(java.io.File file)
|
private void |
decodeGroupId(java.io.File file)
|
private void |
decodeType(java.io.File file)
|
private void |
decodeVersion(java.lang.String fileName)
|
private int |
findVersionSeparator(java.lang.String txt)
|
java.lang.String |
getArtifactId()
Retrieve the Artifact Id. |
java.lang.String |
getFileName()
Retrieve the file name of the artifact. |
java.lang.String |
getGroupId()
Retrieve the Group Id. |
java.lang.String |
getId()
Return an id for an artifact. |
long |
getLength()
Retrieve the artifact length. |
java.lang.String |
getType()
Retrieve the artifact type. |
java.lang.String |
getVersion()
Retrieve the version of this artifact. |
boolean |
isOverridden()
Indicates if the fileName is conform to the standard maven's naming schema. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
UNDEFINED
private static final java.lang.String UNDEFINED
- See Also:
- Constant Field Values
_file
private final java.io.File _file
_groupId
private java.lang.String _groupId
_artifactId
private java.lang.String _artifactId
_type
private java.lang.String _type
_version
private java.lang.String _version
| Constructor Detail |
FArtifact
FArtifact(java.io.File file) throws BadArtifactFileException
| Method Detail |
getGroupId
public java.lang.String getGroupId()
- Description copied from interface:
org.repoweb.model.Artifact - Retrieve the Group Id.
- Specified by:
getGroupIdin interfaceorg.repoweb.model.Artifact
getArtifactId
public java.lang.String getArtifactId()
- Description copied from interface:
org.repoweb.model.Artifact - Retrieve the Artifact Id.
- Specified by:
getArtifactIdin interfaceorg.repoweb.model.Artifact
getId
public java.lang.String getId()
- Description copied from interface:
org.repoweb.model.Artifact - Return an id for an artifact.
- Specified by:
getIdin interfaceorg.repoweb.model.Artifact
getType
public java.lang.String getType()
- Description copied from interface:
org.repoweb.model.Artifact - Retrieve the artifact type. This is determined by the folder containing the
artifact.
- Specified by:
getTypein interfaceorg.repoweb.model.Artifact
getVersion
public java.lang.String getVersion()
- Description copied from interface:
org.repoweb.model.Artifact - Retrieve the version of this artifact. Returns an empty string when no version has
been given.
- Specified by:
getVersionin interfaceorg.repoweb.model.Artifact
getFileName
public java.lang.String getFileName()
- Description copied from interface:
org.repoweb.model.Artifact - Retrieve the file name of the artifact.
- Specified by:
getFileNamein interfaceorg.repoweb.model.Artifact
getLength
public long getLength()
- Description copied from interface:
org.repoweb.model.Artifact - Retrieve the artifact length.
- Specified by:
getLengthin interfaceorg.repoweb.model.Artifact
isOverridden
public boolean isOverridden()
- Description copied from interface:
org.repoweb.model.Artifact - Indicates if the fileName is conform to the standard maven's naming schema.
[maven]/[groupId]/[type]s/[artifactId]-[version].[type]
- Specified by:
isOverriddenin interfaceorg.repoweb.model.Artifact
decodeVersion
private void decodeVersion(java.lang.String fileName)
findVersionSeparator
private int findVersionSeparator(java.lang.String txt)
decodeArtifactId
private void decodeArtifactId(java.lang.String fileName)
decodeFileName
private java.lang.String decodeFileName(java.io.File file)
decodeGroupId
private void decodeGroupId(java.io.File file)
decodeType
private void decodeType(java.io.File file) throws BadArtifactFileException
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> org >> repoweb >> model >> [ file overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.repoweb.model.file.FArtifact