org.apache.commons.classscan
Interface MetaClassPathElement

All Superinterfaces:
HasName
All Known Subinterfaces:
SpiMetaClassPathElement
All Known Implementing Classes:
DefaultMetaClassPathElement

public interface MetaClassPathElement
extends HasName

Information about a code location. A code location may be a file folder, or a jar, or other packaged location


Method Summary
 MetaClass getMetaClass(String className)
          Get metadata about a Class which is available in the code location.
 Collection<? extends MetaClass> getMetaClasses()
          Get metadata about the Classes which are available in the code location.
 String getName()
          Get the name of the location of the jar or folder.
 

Method Detail

getMetaClasses

Collection<? extends MetaClass> getMetaClasses()
Get metadata about the Classes which are available in the code location.

Returns:
A read-only collection of class information

getMetaClass

MetaClass getMetaClass(String className)
Get metadata about a Class which is available in the code location.

Parameters:
className - The canonical className of the desired Class
Returns:
The class information; or null, if class of given name not available at this location

getName

String getName()
Get the name of the location of the jar or folder. This name can be used as the parameter to the URI or URL constructor.

Specified by:
getName in interface HasName


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.