org.exolab.castor.builder

Class MemberFactory

public class MemberFactory extends Object

The "Factory" responsible for creating fields for the given schema components

Version: $Revision: 1.15 $ $Date: 2005/03/05 13:41:42 $

Author: Keith Visco

Constructor Summary
MemberFactory(BuilderConfiguration config)
Creates a new MemberFactory with default type factory.
MemberFactory(BuilderConfiguration config, FieldInfoFactory infoFactory)
Creates a new MemberFactory using the given FieldInfo factory.
Method Summary
FieldInfocreateFieldInfo(XMLBindingComponent component, ClassInfoResolver resolver)
Creates a FieldInfo object for the given XMLBindingComponent.
FieldInfocreateFieldInfoForAny(Wildcard any)
Creates a FieldInfo for content models that support "any" element.
FieldInfocreateFieldInfoForChoiceValue()
Creates a FieldInfo to hold the value of a choice.
FieldInfocreateFieldInfoForContent(XSType xsType)
Creates a FieldInfo for content.

Constructor Detail

MemberFactory

public MemberFactory(BuilderConfiguration config)
Creates a new MemberFactory with default type factory.

Parameters: config the BuilderConfiguration

MemberFactory

public MemberFactory(BuilderConfiguration config, FieldInfoFactory infoFactory)
Creates a new MemberFactory using the given FieldInfo factory.

Parameters: config the BuilderConfiguration infoFactory the FieldInfoFactory to use

Method Detail

createFieldInfo

public FieldInfo createFieldInfo(XMLBindingComponent component, ClassInfoResolver resolver)
Creates a FieldInfo object for the given XMLBindingComponent.

Parameters: component the XMLBindingComponent to create the FieldInfo for

Returns: the FieldInfo for the given attribute declaration

createFieldInfoForAny

public FieldInfo createFieldInfoForAny(Wildcard any)
Creates a FieldInfo for content models that support "any" element.

Returns: the new FieldInfo

createFieldInfoForChoiceValue

public FieldInfo createFieldInfoForChoiceValue()
Creates a FieldInfo to hold the value of a choice.

Returns: the new FieldInfo

createFieldInfoForContent

public FieldInfo createFieldInfoForContent(XSType xsType)
Creates a FieldInfo for content.

Parameters: xsType the type of content

Returns: the new FieldInfo

Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com