org.apache.geronimo.gbean
Class AbstractName
java.lang.Object
org.apache.geronimo.gbean.AbstractName
- All Implemented Interfaces:
- Serializable
public class AbstractName
- extends Object
- implements Serializable
- See Also:
- Serialized Form
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.
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-2007 Apache Software Foundation. All Rights Reserved.