org.ow2.petals.admin.api.artifact
Class Artifact

java.lang.Object
  extended by org.ow2.petals.admin.api.artifact.Artifact
Direct Known Subclasses:
Component, ServiceAssembly, ServiceUnit, SharedLibrary

public abstract class Artifact
extends java.lang.Object

This class represents a remote JBI artifact archive.

Author:
Nicolas Oddoux - EBM WebSourcing

Constructor Summary
protected Artifact(java.lang.String name, java.lang.String type)
          Create a new artifact
protected Artifact(java.lang.String name, java.lang.String version, java.lang.String type)
          Create a new artifact
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          Return the name of the artifact
 java.lang.String getType()
          Return the type of the artifact.
 java.lang.String getVersion()
          Return the version of the artifact
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Artifact

protected Artifact(java.lang.String name,
                   java.lang.String type)
Create a new artifact

Parameters:
name - the name of the artifact

Artifact

protected Artifact(java.lang.String name,
                   java.lang.String version,
                   java.lang.String type)
Create a new artifact

Parameters:
name - the name of the artifact
version - the version of the artifact
Method Detail

getType

public java.lang.String getType()
Return the type of the artifact.

Returns:
the type of the artifact.

getName

public java.lang.String getName()
Return the name of the artifact

Returns:
the name of the artifact

getVersion

public java.lang.String getVersion()
Return the version of the artifact

Returns:
the version of the artifact

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2005-2012 Petals Link (EBM Websourcing). All Rights Reserved.