org.exolab.castor.builder

Class MemberFactory


public class MemberFactory
extends java.lang.Object

Version:
$Revision: 1.2 $ $Date: 2003/03/03 09:57:14 $
Author:
Keith Visco

Constructor Summary

MemberFactory()
Creates a new MemberFactory with default type factory.
MemberFactory(FieldInfoFactory infoFactory)
Creates a new MemberFactory using the given FieldInfo factory.

Method Summary

FieldInfo
createFieldInfo(XMLBindingComponent component, ClassInfoResolver resolver)
Creates a FieldInfo object for the given XMLBindingComponent.
FieldInfo
createFieldInfoForAny(Wildcard any)
Creates a FieldInfo for content models that support "any" element.
FieldInfo
createFieldInfoForContent(XSType xsType)
Creates a FieldInfo for content.

Constructor Details

MemberFactory

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

MemberFactory

public MemberFactory(FieldInfoFactory infoFactory)
Creates a new MemberFactory using the given FieldInfo factory.
Parameters:
infoFactory - the FieldInfoFactory to use

Method Details

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

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-2003. All rights reserved http://www.intalio.com