com.bea.wli.config.resource
Class ResourceQuery

java.lang.Object
  extended by com.bea.wli.config.resource.ResourceQuery
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ArchiveResourceQuery, JndiProviderQuery, ServiceAccountQuery, ServiceProviderQuery, ServiceQuery, SmtpServerQuery, UDDIRegistryEntryQuery, WsdlQuery, WsPolicyQuery, XmlSchemaQuery

public class ResourceQuery
extends Object
implements Serializable

Base class for resource queries that are used to query resources within a particular type.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
ResourceQuery(String typeId)
           
 
Method Summary
 void addKeySearch(String key, Object keyValue)
          Adds a filtering condition.
 void addSubQuery(ResourceQuery q)
          Adds a subquery to be performed over a subordinate type in addition to this query
 Collection<String> getAttrsToReturn()
           
 Map<String,Object> getFilter()
           
 String getLocalName()
           
 String getPath()
           
 Collection<ResourceQuery> getSubQueries()
           
 String getTypeId()
           
 void setAttrsToReturn(Collection<String> attrsToReturn)
          Sets additional attributes to return.
 void setLocalName(String localName)
          Adds a predicate to return only resource that have the given local name relative to their project / folder.
 void setPath(String path)
          Adds a predicate to return only resources under the given path
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ResourceQuery

public ResourceQuery(String typeId)
Method Detail

getTypeId

public String getTypeId()

getPath

public String getPath()

getLocalName

public String getLocalName()

getFilter

public Map<String,Object> getFilter()

getAttrsToReturn

public Collection<String> getAttrsToReturn()

getSubQueries

public Collection<ResourceQuery> getSubQueries()

addKeySearch

public void addKeySearch(String key,
                         Object keyValue)
Adds a filtering condition.

Parameters:
key -
keyValue -

setPath

public void setPath(String path)
Adds a predicate to return only resources under the given path

Parameters:
path -

setLocalName

public void setLocalName(String localName)
Adds a predicate to return only resource that have the given local name relative to their project / folder.

Parameters:
localName -

setAttrsToReturn

public void setAttrsToReturn(Collection<String> attrsToReturn)
Sets additional attributes to return. If null or empty no additional attributes are returned.

Parameters:
attrsToReturn -

addSubQuery

public void addSubQuery(ResourceQuery q)
Adds a subquery to be performed over a subordinate type in addition to this query

Parameters:
q -