org.exolab.castor.builder
Class MemberFactory

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

public class MemberFactory
extends java.lang.Object

Version:
$Revision: 1.59 $ $Date: 2002/01/18 04:08:10 $
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(AttributeDecl attribute, ClassInfoResolver resolver)
          Creates a FieldInfo object for the given attribute declaration
 FieldInfo createFieldInfo(ElementDecl element, ClassInfoResolver resolver)
          Creates a new FieldInfo based on the given ElementDecl
 FieldInfo createFieldInfo(Group group, SGStateInfo sgState)
          Creates a new FieldInfo based on the given Group
 FieldInfo createFieldInfoForAny()
          Creates a FieldInfo for content models that support "any" element.
 FieldInfo createFieldInfoForContent(XSType xsType)
          Creates a FieldInfo for content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

createFieldInfoForAny

public FieldInfo createFieldInfoForAny()
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

createFieldInfo

public FieldInfo createFieldInfo(AttributeDecl attribute,
                                 ClassInfoResolver resolver)
Creates a FieldInfo object for the given attribute declaration

Parameters:
attribute - the XML attribute declaration to create the FieldInfo for
Returns:
the FieldInfo for the given attribute declaration

createFieldInfo

public FieldInfo createFieldInfo(ElementDecl element,
                                 ClassInfoResolver resolver)
Creates a new FieldInfo based on the given ElementDecl

Parameters:
element - the ElementDecl to create the FieldInfo for
Returns:
the new FieldInfo

createFieldInfo

public FieldInfo createFieldInfo(Group group,
                                 SGStateInfo sgState)
Creates a new FieldInfo based on the given Group

Parameters:
group - the Group to create the FieldInfo for
Returns:
a new FieldInfo for the given Group


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