org.jboss.beans.metadata.plugins
Class AbstractFeatureMetaData

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.beans.metadata.plugins.AbstractFeatureMetaData
All Implemented Interfaces:
Serializable, Cloneable, TypeProvider, FeatureMetaData, MetaDataVisitorNode, org.jboss.util.JBossInterface
Direct Known Subclasses:
AbstractBeanMetaData, AbstractConstructorMetaData, AbstractLifecycleMetaData, AbstractParameterMetaData, AbstractPropertyMetaData

public abstract class AbstractFeatureMetaData
extends org.jboss.util.JBossObject
implements FeatureMetaData, TypeProvider, Serializable

General metadata.

Version:
$Revision: 71794 $
Author:
Adrian Brock
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Fields inherited from interface org.jboss.beans.metadata.plugins.TypeProvider
ERROR_MSG
 
Constructor Summary
AbstractFeatureMetaData()
          Create a new meta data
 
Method Summary
protected  void addChildren(Set<MetaDataVisitorNode> children)
           
protected  org.jboss.reflect.spi.TypeInfo applyCollectionOrMapCheck(org.jboss.reflect.spi.TypeInfo typeInfo)
           
 void describeVisit(MetaDataVisitor vistor)
          Revisit the node
protected  void doClone(AbstractFeatureMetaData clone)
           
 Set<AnnotationMetaData> getAnnotations()
          Get the annotations.
 Iterator<? extends MetaDataVisitorNode> getChildren()
          Return the child nodes
 String getDescription()
          Get the descrition.
 void initialVisit(MetaDataVisitor visitor)
          Visit the node
 void setAnnotations(Set<AnnotationMetaData> annotations)
          Set the annotations.
 void setDescription(String description)
          Set the description.
 void toShortString(org.jboss.util.JBossStringBuilder buffer)
           
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString
 
Methods inherited from interface org.jboss.beans.metadata.spi.MetaDataVisitorNode
clone
 
Methods inherited from interface org.jboss.beans.metadata.plugins.TypeProvider
getType
 

Constructor Detail

AbstractFeatureMetaData

public AbstractFeatureMetaData()
Create a new meta data

Method Detail

setDescription

public void setDescription(String description)
Set the description.

Parameters:
description - the description.

setAnnotations

public void setAnnotations(Set<AnnotationMetaData> annotations)
Set the annotations.

Parameters:
annotations - Set

getDescription

public String getDescription()
Description copied from interface: FeatureMetaData
Get the descrition.

Specified by:
getDescription in interface FeatureMetaData
Returns:
the description.

getAnnotations

public Set<AnnotationMetaData> getAnnotations()
Description copied from interface: FeatureMetaData
Get the annotations.

Specified by:
getAnnotations in interface FeatureMetaData
Returns:
Set.

initialVisit

public void initialVisit(MetaDataVisitor visitor)
Description copied from interface: MetaDataVisitorNode
Visit the node

Specified by:
initialVisit in interface MetaDataVisitorNode
Parameters:
visitor - the visitor

describeVisit

public void describeVisit(MetaDataVisitor vistor)
Description copied from interface: MetaDataVisitorNode
Revisit the node

Specified by:
describeVisit in interface MetaDataVisitorNode
Parameters:
vistor - the visitor

applyCollectionOrMapCheck

protected org.jboss.reflect.spi.TypeInfo applyCollectionOrMapCheck(org.jboss.reflect.spi.TypeInfo typeInfo)
                                                            throws Throwable
Throws:
Throwable

getChildren

public Iterator<? extends MetaDataVisitorNode> getChildren()
Description copied from interface: MetaDataVisitorNode
Return the child nodes

Specified by:
getChildren in interface MetaDataVisitorNode
Returns:
Iterator or null if there aren't any

addChildren

protected void addChildren(Set<MetaDataVisitorNode> children)

toString

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

toShortString

public void toShortString(org.jboss.util.JBossStringBuilder buffer)
Specified by:
toShortString in interface org.jboss.util.JBossInterface
Overrides:
toShortString in class org.jboss.util.JBossObject

doClone

protected void doClone(AbstractFeatureMetaData clone)


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