org.jvnet.hyperjaxb3.ejb.strategy.model.base
Class AbstractAdaptBuiltinPropertyInfo

java.lang.Object
  extended by org.jvnet.hyperjaxb3.ejb.strategy.model.base.AbstractAdaptPropertyInfo
      extended by org.jvnet.hyperjaxb3.ejb.strategy.model.base.AbstractAdaptBuiltinPropertyInfo
All Implemented Interfaces:
CreatePropertyInfos, PropertyInfoProcessor<Collection<com.sun.tools.xjc.model.CPropertyInfo>,ProcessModel>
Direct Known Subclasses:
AdaptCollectionBuiltinNonReference, AdaptSingleBuiltinNonReference, AdaptSingleBuiltinReference, AdaptSingleWildcardNonReference, AdaptSingleWildcardReference

public abstract class AbstractAdaptBuiltinPropertyInfo
extends AbstractAdaptPropertyInfo


Constructor Summary
AbstractAdaptBuiltinPropertyInfo(com.sun.tools.xjc.model.TypeUse propertyType)
           
AbstractAdaptBuiltinPropertyInfo(com.sun.tools.xjc.model.TypeUse type, Class<? extends javax.xml.bind.annotation.adapters.XmlAdapter<?,?>> adapterClass)
           
 
Method Summary
protected abstract  com.sun.tools.xjc.outline.FieldOutline generateField(ProcessModel context, com.sun.tools.xjc.model.CPropertyInfo core, com.sun.tools.xjc.generator.bean.ClassOutlineImpl classOutline, com.sun.tools.xjc.model.CPropertyInfo propertyInfo)
           
 com.sun.xml.bind.v2.model.core.PropertyKind getDefaultGeneratedPropertyKind(ProcessModel context, com.sun.tools.xjc.model.CPropertyInfo propertyInfo)
           
 String getDefaultGeneratedPropertyName(ProcessModel context, com.sun.tools.xjc.model.CPropertyInfo propertyInfo)
           
 com.sun.tools.xjc.model.TypeUse getPropertyType(ProcessModel context, com.sun.tools.xjc.model.CPropertyInfo propertyInfo)
           
 Collection<com.sun.tools.xjc.model.CPropertyInfo> process(ProcessModel context, com.sun.tools.xjc.model.CPropertyInfo core)
          Creates a collection of properties for the given property.
 
Methods inherited from class org.jvnet.hyperjaxb3.ejb.strategy.model.base.AbstractAdaptPropertyInfo
createAttributePropertyInfo, createCustomizations, createElementPropertyInfo, createPropertyInfo, getDefaultGeneratedPropertyCollectionMode, getDefaultGeneratedPropertyQName, getSchemaComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAdaptBuiltinPropertyInfo

public AbstractAdaptBuiltinPropertyInfo(com.sun.tools.xjc.model.TypeUse type,
                                        Class<? extends javax.xml.bind.annotation.adapters.XmlAdapter<?,?>> adapterClass)

AbstractAdaptBuiltinPropertyInfo

public AbstractAdaptBuiltinPropertyInfo(com.sun.tools.xjc.model.TypeUse propertyType)
Method Detail

process

public Collection<com.sun.tools.xjc.model.CPropertyInfo> process(ProcessModel context,
                                                                 com.sun.tools.xjc.model.CPropertyInfo core)
Description copied from interface: CreatePropertyInfos
Creates a collection of properties for the given property.

Parameters:
context - processing context.
core - property to be processed.
Returns:
Collection of properties created for the given property. Must not be null, if nothing is created, return an empty collection instead.

getDefaultGeneratedPropertyKind

public com.sun.xml.bind.v2.model.core.PropertyKind getDefaultGeneratedPropertyKind(ProcessModel context,
                                                                                   com.sun.tools.xjc.model.CPropertyInfo propertyInfo)
Specified by:
getDefaultGeneratedPropertyKind in class AbstractAdaptPropertyInfo

getPropertyType

public com.sun.tools.xjc.model.TypeUse getPropertyType(ProcessModel context,
                                                       com.sun.tools.xjc.model.CPropertyInfo propertyInfo)
Specified by:
getPropertyType in class AbstractAdaptPropertyInfo

getDefaultGeneratedPropertyName

public String getDefaultGeneratedPropertyName(ProcessModel context,
                                              com.sun.tools.xjc.model.CPropertyInfo propertyInfo)
Specified by:
getDefaultGeneratedPropertyName in class AbstractAdaptPropertyInfo

generateField

protected abstract com.sun.tools.xjc.outline.FieldOutline generateField(ProcessModel context,
                                                                        com.sun.tools.xjc.model.CPropertyInfo core,
                                                                        com.sun.tools.xjc.generator.bean.ClassOutlineImpl classOutline,
                                                                        com.sun.tools.xjc.model.CPropertyInfo propertyInfo)


Copyright © 2005-2011. All Rights Reserved.