org.apache.geronimo.gbean
Class AbstractName

java.lang.Object
  extended by org.apache.geronimo.gbean.AbstractName
All Implemented Interfaces:
Serializable

public class AbstractName
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
AbstractName(Artifact artifact, Map name)
           
AbstractName(Artifact artifact, Map name, ObjectName objectName)
           
AbstractName(URI uri)
          Contructs an AbstractName object from the given URI.
 
Method Summary
 boolean equals(Object o)
           
 Artifact getArtifact()
           
 Map getName()
           
 String getNameProperty(String key)
           
 ObjectName getObjectName()
           
 int hashCode()
           
 String toString()
           
 URI toURI()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractName

public AbstractName(Artifact artifact,
                    Map name)

AbstractName

public AbstractName(Artifact artifact,
                    Map name,
                    ObjectName objectName)

AbstractName

public AbstractName(URI uri)
Contructs an AbstractName object from the given URI. The artifactId for the AbstractName is constructed from the URI path (everything up to the ? character) and is composed of four parts delimited by slashes. The artifactId is the only mandatory part, all slashes are mandatory. The name map for the AbstractName is constructed from key=value pairs. Each key=value pair is delimited by a ',' character and the key is separated from the value by the '=' character. Each key must be unique. At least one key=value pair must be specified in the query string. The URI has the following format: [vendorId]/artifactId/[version]/[type]?key=value[,key=value][,...]

Parameters:
uri - The URI to be used to generate an AbstractName.
Method Detail

getArtifact

public Artifact getArtifact()

getName

public Map getName()

getNameProperty

public String getNameProperty(String key)

getObjectName

public ObjectName getObjectName()

toURI

public URI toURI()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.