org.jboss.beans.metadata.plugins.policy
Class AbstractScopeMetaData

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.beans.metadata.plugins.policy.AbstractScopeMetaData
All Implemented Interfaces:
Serializable, Cloneable, MetaDataVisitorNode, ScopeMetaData, ValueMetaData, org.jboss.util.JBossInterface

public class AbstractScopeMetaData
extends org.jboss.util.JBossObject
implements ScopeMetaData, Serializable

Meta data for scope.

Author:
Ales Justin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
AbstractScopeMetaData()
           
 
Method Summary
 void describeVisit(MetaDataVisitor vistor)
          Revisit the node
 Iterator<? extends MetaDataVisitorNode> getChildren()
          Return the child nodes
 String getLevel()
          Get the level
 String getQualifier()
          Get the qualifier
 String getScope()
          Get the scope annotation name
 Object getUnderlyingValue()
          Get the underlying value
 Object getValue(org.jboss.reflect.spi.TypeInfo info, ClassLoader cl)
          Get the value.
 void initialVisit(MetaDataVisitor vistor)
          Visit the node
 void setLevel(String level)
           
 void setQualifier(String qualifier)
           
 void setScope(String scope)
           
 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
 

Constructor Detail

AbstractScopeMetaData

public AbstractScopeMetaData()
Method Detail

getUnderlyingValue

public Object getUnderlyingValue()
Description copied from interface: ValueMetaData
Get the underlying value

Specified by:
getUnderlyingValue in interface ValueMetaData
Returns:
the underlying value

getValue

public Object getValue(org.jboss.reflect.spi.TypeInfo info,
                       ClassLoader cl)
                throws Throwable
Description copied from interface: ValueMetaData
Get the value.

Specified by:
getValue in interface ValueMetaData
Parameters:
info - the type info
cl - the classloader
Returns:
the value.
Throws:
Throwable - for any error

initialVisit

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

Specified by:
initialVisit in interface MetaDataVisitorNode
Parameters:
vistor - 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

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

getScope

public String getScope()
Description copied from interface: ScopeMetaData
Get the scope annotation name

Specified by:
getScope in interface ScopeMetaData
Returns:
scope annotation

getLevel

public String getLevel()
Description copied from interface: ScopeMetaData
Get the level

Specified by:
getLevel in interface ScopeMetaData
Returns:
scope level

getQualifier

public String getQualifier()
Description copied from interface: ScopeMetaData
Get the qualifier

Specified by:
getQualifier in interface ScopeMetaData
Returns:
qualifier name

setScope

public void setScope(String scope)

setLevel

public void setLevel(String level)

setQualifier

public void setQualifier(String qualifier)

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


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