org.jboss.xb.builder.runtime
Class WrapperBeanAdapterFactory

java.lang.Object
  extended by org.jboss.xb.spi.BeanAdapterFactory
      extended by org.jboss.xb.builder.runtime.WrapperBeanAdapterFactory

public class WrapperBeanAdapterFactory
extends BeanAdapterFactory

WrapperBeanAdapterFactory.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
WrapperBeanAdapterFactory(BeanAdapterFactory wrapped, Class<?> stopWrapping)
          Create a new WrapperBeanAdapterFactory.
 
Method Summary
 void addProperty(QName name, AbstractPropertyHandler propertyHandler)
          Add a property
 String getAvailable()
          Get the available properties as a string
 Map<QName,AbstractPropertyHandler> getProperties()
          Get the properties
 AbstractPropertyHandler getPropertyHandler(QName name)
          Get the property handler for an element name
 Class<?> getStopWrapping()
          The type to stop wrapping at
 AbstractPropertyHandler getWildcardHandler()
          Get the wildcardHandler.
 WrapperBeanAdapter newInstance()
          Create a new BeanAdapter
 void setWildcardHandler(AbstractPropertyHandler wildcardHandler)
          Set the wildcardHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperBeanAdapterFactory

public WrapperBeanAdapterFactory(BeanAdapterFactory wrapped,
                                 Class<?> stopWrapping)
Create a new WrapperBeanAdapterFactory.

Parameters:
wrapped - the wrapped factory
stopWrapping - the stop wrapping type
Method Detail

getStopWrapping

public Class<?> getStopWrapping()
The type to stop wrapping at

Returns:
the stop wrapping type

newInstance

public WrapperBeanAdapter newInstance()
Description copied from class: BeanAdapterFactory
Create a new BeanAdapter

Specified by:
newInstance in class BeanAdapterFactory
Returns:
the new bean adapter

addProperty

public void addProperty(QName name,
                        AbstractPropertyHandler propertyHandler)
Description copied from class: BeanAdapterFactory
Add a property

Overrides:
addProperty in class BeanAdapterFactory
Parameters:
name - the qName
propertyHandler - the property handler

getAvailable

public String getAvailable()
Description copied from class: BeanAdapterFactory
Get the available properties as a string

Overrides:
getAvailable in class BeanAdapterFactory
Returns:
the available properties

getProperties

public Map<QName,AbstractPropertyHandler> getProperties()
Description copied from class: BeanAdapterFactory
Get the properties

Overrides:
getProperties in class BeanAdapterFactory
Returns:
the properties

getPropertyHandler

public AbstractPropertyHandler getPropertyHandler(QName name)
Description copied from class: BeanAdapterFactory
Get the property handler for an element name

Overrides:
getPropertyHandler in class BeanAdapterFactory
Parameters:
name - the element name
Returns:
the property handler

getWildcardHandler

public AbstractPropertyHandler getWildcardHandler()
Description copied from class: BeanAdapterFactory
Get the wildcardHandler.

Overrides:
getWildcardHandler in class BeanAdapterFactory
Returns:
the wildcardHandler.

setWildcardHandler

public void setWildcardHandler(AbstractPropertyHandler wildcardHandler)
Description copied from class: BeanAdapterFactory
Set the wildcardHandler.

Overrides:
setWildcardHandler in class BeanAdapterFactory
Parameters:
wildcardHandler - the wildcardHandler.


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