org.apache.geronimo.gbean
Class AbstractNameQuery

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

public class AbstractNameQuery
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
AbstractNameQuery(AbstractName abstractName)
           
AbstractNameQuery(AbstractName abstractName, Set interfaceTypes)
           
AbstractNameQuery(Artifact artifact, Map name)
           
AbstractNameQuery(Artifact artifact, Map name, Set interfaceTypes)
           
AbstractNameQuery(Artifact artifact, Map name, String interfaceType)
           
AbstractNameQuery(String interfaceType)
           
AbstractNameQuery(URI uri)
           
 
Method Summary
 boolean equals(Object o)
           
 Artifact getArtifact()
           
 Set getInterfaceTypes()
           
 Map getName()
           
 int hashCode()
           
 boolean matches(AbstractNameQuery info)
          N.B. parameter info is supposed to be more specific than this.
 boolean matches(AbstractName info, Set targetInterfaceTypes)
           
 String toString()
           
 URI toURI()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractNameQuery

public AbstractNameQuery(AbstractName abstractName)

AbstractNameQuery

public AbstractNameQuery(AbstractName abstractName,
                         Set interfaceTypes)

AbstractNameQuery

public AbstractNameQuery(Artifact artifact,
                         Map name)

AbstractNameQuery

public AbstractNameQuery(Artifact artifact,
                         Map name,
                         String interfaceType)

AbstractNameQuery

public AbstractNameQuery(String interfaceType)

AbstractNameQuery

public AbstractNameQuery(Artifact artifact,
                         Map name,
                         Set interfaceTypes)

AbstractNameQuery

public AbstractNameQuery(URI uri)
Method Detail

getArtifact

public Artifact getArtifact()

getName

public Map getName()

getInterfaceTypes

public Set getInterfaceTypes()

toString

public String toString()
Overrides:
toString in class Object

toURI

public URI toURI()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

matches

public boolean matches(AbstractName info,
                       Set targetInterfaceTypes)

matches

public boolean matches(AbstractNameQuery info)
N.B. parameter info is supposed to be more specific than this. This is the opposite of the meaning of Artifact.matches.

Parameters:
info -
Returns:
if info is a more specific version of this name query.


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.