org.jboss.beans.metadata.plugins
Class AbstractSupplyMetaData

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.beans.metadata.plugins.AbstractSupplyMetaData
All Implemented Interfaces:
Serializable, Cloneable, MetaDataVisitorNode, SupplyMetaData, org.jboss.util.JBossInterface

public class AbstractSupplyMetaData
extends org.jboss.util.JBossObject
implements SupplyMetaData, Serializable

A supply.

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

Field Summary
protected  Object supply
          The supply
protected  String type
          The type
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, toString
 
Constructor Summary
AbstractSupplyMetaData()
          Create a new supply
AbstractSupplyMetaData(Object supply)
          Create a new supply
 
Method Summary
 AbstractSupplyMetaData clone()
          Clone the object
 void describeVisit(MetaDataVisitor vistor)
          Revisit the node
 boolean equals(Object obj)
           
 Iterator<? extends MetaDataVisitorNode> getChildren()
          Return the child nodes
protected  int getHashCode()
           
protected  PropertyEditor getPropertyEditor()
           
 Object getSupply()
          Get what is supplied
 String getType()
          Get the class type.
 void initialVisit(MetaDataVisitor visitor)
          Visit the node
 void setSupply(Object supply)
          Set the supply
 void setType(String type)
          Set the class type
 void toShortString(org.jboss.util.JBossStringBuilder buffer)
           
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.util.JBossInterface
toShortString
 

Field Detail

supply

protected Object supply
The supply


type

protected String type
The type

Constructor Detail

AbstractSupplyMetaData

public AbstractSupplyMetaData()
Create a new supply


AbstractSupplyMetaData

public AbstractSupplyMetaData(Object supply)
Create a new supply

Parameters:
supply - the supply
Method Detail

setSupply

public void setSupply(Object supply)
Set the supply

Parameters:
supply - the supply

getType

public String getType()
Get the class type.

Returns:
the class type

setType

public void setType(String type)
Set the class type

Parameters:
type - the type

getSupply

public Object getSupply()
Description copied from interface: SupplyMetaData
Get what is supplied

Specified by:
getSupply in interface SupplyMetaData
Returns:
the supply

getPropertyEditor

protected PropertyEditor getPropertyEditor()

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

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

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

equals

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

getHashCode

protected int getHashCode()
Overrides:
getHashCode in class org.jboss.util.JBossObject

clone

public AbstractSupplyMetaData clone()
Description copied from interface: MetaDataVisitorNode
Clone the object

Specified by:
clone in interface MetaDataVisitorNode
Specified by:
clone in interface org.jboss.util.JBossInterface
Overrides:
clone in class org.jboss.util.JBossObject
Returns:
a clone of the object


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