org.jboss.reflect.plugins
Class PackageInfoImpl

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.plugins.AbstractAnnotatedInfo
          extended by org.jboss.reflect.plugins.AnnotationHolder
              extended by org.jboss.reflect.plugins.PackageInfoImpl
All Implemented Interfaces:
Serializable, Cloneable, AnnotatedInfo, PackageInfo, org.jboss.util.JBossInterface

public class PackageInfoImpl
extends AnnotationHolder
implements PackageInfo

Class info TODO JBMICROCONT-118 fix the introspection assumption

Author:
Bill Burke, Adrian Brock
See Also:
Serialized Form

Field Summary
protected  String name
          The package name
 
Fields inherited from class org.jboss.reflect.plugins.AnnotationHolder
annotationMap, annotationsArray
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
PackageInfoImpl()
          Create a new abstract PackageInfo.
PackageInfoImpl(String name)
          Create a new package info
PackageInfoImpl(String name, AnnotationValue[] annotations)
          Create a new package info
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          Get the package name
 int hashCode()
           
protected  void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.reflect.plugins.AnnotationHolder
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations
 
Methods inherited from class org.jboss.reflect.plugins.AbstractAnnotatedInfo
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 

Field Detail

name

protected String name
The package name

Constructor Detail

PackageInfoImpl

public PackageInfoImpl()
Create a new abstract PackageInfo.


PackageInfoImpl

public PackageInfoImpl(String name)
Create a new package info

Parameters:
name - the package name

PackageInfoImpl

public PackageInfoImpl(String name,
                       AnnotationValue[] annotations)
Create a new package info

Parameters:
name - the package name
annotations - the annotations
Method Detail

getName

public String getName()
Description copied from interface: PackageInfo
Get the package name

Specified by:
getName in interface PackageInfo
Returns:
the name

toString

protected void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class org.jboss.util.JBossObject

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class org.jboss.util.JBossObject


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.