org.apache.imperius.javaspl
Class JavaDataCollectorImpl

java.lang.Object
  extended by org.apache.imperius.javaspl.JavaDataCollectorImpl
All Implemented Interfaces:
DataCollector

public class JavaDataCollectorImpl
extends java.lang.Object
implements DataCollector


Constructor Summary
JavaDataCollectorImpl()
           
JavaDataCollectorImpl(java.net.URL[] urls)
           
 
Method Summary
 boolean associationExists(java.lang.String nameSpace, java.lang.String className, java.lang.String resultClass, java.lang.String assocClass, java.lang.String role, java.lang.String resultRole)
          Not applicable for java spl
 java.util.List enumerateInstanceNames(java.lang.String className, java.lang.String qualifier)
          Get a list of Strings representing names of instances of the given class in the Operating Environment
 java.util.List getAssociatedInstanceReferences(java.lang.Object srcReference, java.lang.String classPath, java.lang.String resultInstancesClassFilter, java.lang.String assocClass, java.lang.String role, java.lang.String resultRole)
          This method is applicable to Domains that support the notion of associations.
 java.lang.String getReferenceTypeName(java.lang.String reference)
           
 java.util.Map getSymbolsForClass(java.lang.String className, java.lang.String qualifier)
          Returns a Map of all the symbols (Properties and Methods) of the given class The Map is of the form String -> Symbol where Symbol can be a PropertySymbol or a MethodSymbol
 java.util.Map getSymbolsForInstance(java.lang.String className, java.lang.String qualifier, java.lang.Object instance)
          Get symbols for the given instance
 boolean isInstance(java.lang.String anchorClassName, java.lang.Object instance)
          Checks if the given object is an instance of the given class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaDataCollectorImpl

public JavaDataCollectorImpl()

JavaDataCollectorImpl

public JavaDataCollectorImpl(java.net.URL[] urls)
Method Detail

getSymbolsForClass

public java.util.Map getSymbolsForClass(java.lang.String className,
                                        java.lang.String qualifier)
                                 throws SPLException
Description copied from interface: DataCollector
Returns a Map of all the symbols (Properties and Methods) of the given class The Map is of the form String -> Symbol where Symbol can be a PropertySymbol or a MethodSymbol

Specified by:
getSymbolsForClass in interface DataCollector
Returns:
Map of symbols
Throws:
SPLException

getSymbolsForInstance

public java.util.Map getSymbolsForInstance(java.lang.String className,
                                           java.lang.String qualifier,
                                           java.lang.Object instance)
                                    throws SPLException
Get symbols for the given instance

Specified by:
getSymbolsForInstance in interface DataCollector
Returns:
Throws:
SPLException

associationExists

public boolean associationExists(java.lang.String nameSpace,
                                 java.lang.String className,
                                 java.lang.String resultClass,
                                 java.lang.String assocClass,
                                 java.lang.String role,
                                 java.lang.String resultRole)
                          throws SPLException
Not applicable for java spl

Specified by:
associationExists in interface DataCollector
Returns:
Throws:
SPLException

getAssociatedInstanceReferences

public java.util.List getAssociatedInstanceReferences(java.lang.Object srcReference,
                                                      java.lang.String classPath,
                                                      java.lang.String resultInstancesClassFilter,
                                                      java.lang.String assocClass,
                                                      java.lang.String role,
                                                      java.lang.String resultRole)
                                               throws SPLException
Description copied from interface: DataCollector
This method is applicable to Domains that support the notion of associations. Associations are relations between 2 classes where each object has a role name and the association itself is a class. This method retrieves instances that are associated via a given association and roles to a source instance. This method is used to get instances o

Specified by:
getAssociatedInstanceReferences in interface DataCollector
Returns:
Throws:
SPLException

enumerateInstanceNames

public java.util.List enumerateInstanceNames(java.lang.String className,
                                             java.lang.String qualifier)
                                      throws SPLException
Description copied from interface: DataCollector
Get a list of Strings representing names of instances of the given class in the Operating Environment

Specified by:
enumerateInstanceNames in interface DataCollector
Returns:
Throws:
SPLException

getReferenceTypeName

public java.lang.String getReferenceTypeName(java.lang.String reference)

isInstance

public boolean isInstance(java.lang.String anchorClassName,
                          java.lang.Object instance)
                   throws SPLException
Description copied from interface: DataCollector
Checks if the given object is an instance of the given class

Specified by:
isInstance in interface DataCollector
Throws:
SPLException