classpathhelper
Class ClassDescription

java.lang.Object
  extended byclasspathhelper.ContentDescription
      extended byclasspathhelper.ClassDescription

public class ClassDescription
extends ContentDescription

ClassDescription that specifically describes Java class content. This objects toString() method returns a proper fully qualified Java class name.

Since:
1.1
Author:
bharris

Constructor Summary
ClassDescription(java.lang.String thePath, SessionCache sessionCache)
          Creates a java description from a fully qualified Java path, example: foo/bar/MyClass.class
 
Method Summary
 java.lang.String getClassName()
           
 java.lang.String getName()
          The name (not including package)
 boolean isPrimitive()
          Method indicating whether or not the class refered to by this detail is a primitive or not.
 java.lang.String toString()
           
 
Methods inherited from class classpathhelper.ContentDescription
equals, getPackageName, getPath, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassDescription

public ClassDescription(java.lang.String thePath,
                        SessionCache sessionCache)
Creates a java description from a fully qualified Java path, example: foo/bar/MyClass.class

Parameters:
thePath - The fully qualified path.
sessionCache - The sessionCache.
Since:
1.1
Method Detail

getClassName

public java.lang.String getClassName()
Returns:
The fully qualified Java class name.
Since:
1.1

getName

public java.lang.String getName()
Description copied from class: ContentDescription
The name (not including package)

Overrides:
getName in class ContentDescription
Returns:
Just the class name (minus any packaging prefix)
Since:
1.1

isPrimitive

public boolean isPrimitive()
Method indicating whether or not the class refered to by this detail is a primitive or not.

Returns:
true If this description relates to one of the primitive types, otherwise false.
Since:
1.1

toString

public java.lang.String toString()
Overrides:
toString in class ContentDescription