org.exolab.castor.builder
Class MemberFactory

java.lang.Object
  extended byorg.exolab.castor.builder.MemberFactory

public class MemberFactory
extends java.lang.Object

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

Version:
$Revision: 1.5 $ $Date: 2004/02/14 08:35:15 $
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
 FieldInfo createFieldInfo(org.exolab.castor.builder.binding.XMLBindingComponent component, ClassInfoResolver resolver)
          Creates a FieldInfo object for the given XMLBindingComponent.
 FieldInfo createFieldInfoForAny(org.exolab.castor.xml.schema.Wildcard any)
          Creates a FieldInfo for content models that support "any" element.
 FieldInfo createFieldInfoForContent(org.exolab.castor.builder.types.XSType xsType)
          Creates a FieldInfo for content.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

createFieldInfoForAny

public FieldInfo createFieldInfoForAny(org.exolab.castor.xml.schema.Wildcard any)
Creates a FieldInfo for content models that support "any" element.

Returns:
the new FieldInfo

createFieldInfoForContent

public FieldInfo createFieldInfoForContent(org.exolab.castor.builder.types.XSType xsType)
Creates a FieldInfo for content.

Parameters:
xsType - the type of content
Returns:
the new FieldInfo

createFieldInfo

public FieldInfo createFieldInfo(org.exolab.castor.builder.binding.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


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