org.apache.ws.jaxme.xs.impl
Class XSObjectFactoryImpl

java.lang.Object
  extended by org.apache.ws.jaxme.xs.impl.XSObjectFactoryImpl
All Implemented Interfaces:
XSObjectFactory
Direct Known Subclasses:
JAXBObjectFactoryImpl

public class XSObjectFactoryImpl
extends java.lang.Object
implements XSObjectFactory

Default implementation of the XSObjectFactory.

Author:
Jochen Wiedmann

Constructor Summary
XSObjectFactoryImpl()
           
 
Method Summary
 SchemaTransformer getSchemaTransformer()
          Returns the object factories schema transformer.
 XSAnnotation newXSAnnotation(XSObject pParent, XsEAnnotation pAnnotation)
          Returns a new instance of XSAnnotation.
 XSAnnotation[] newXSAnnotations(XSObject pParent, XsEAnnotation pAnnotation)
          Returns a new instances of XSAnnotation.
 XSAny newXSAny(XSObject pParent, XsEAny pAny)
          Returns a new instance of XSAny.
 XSAppinfo newXSAppinfo(XSObject pParent, XsEAppinfo pAppinfo)
          Returns a new instance of XSAppinfo.
 XSSimpleType newXSAtomicType(XSType pParent, XSType pRestrictedType, XsERestriction pRestriction)
          Returns a new instance of XSSimpleType.
 XSSimpleType newXSAtomicType(XSType pParent, XSType pRestrictedType, XsTSimpleRestrictionType pRestriction)
          Returns a new instance of XSSimpleType.
 XSAttribute newXSAttribute(XSObject pParent, XsTAttribute pAttribute)
          Returns a new instance of XSAttribute.
 XSAttributeGroup newXSAttributeGroup(XSObject pParent, XsTAttributeGroup pGroup)
          Returns a new instance of XSAttributeGroup.
 XSDocumentation newXSDocumentation(XSObject pParent, XsEDocumentation pDocumentation)
          Returns a new instance of XSDocumentation.
 XSElement newXSElement(XSObject pParent, XsTElement pElement)
          Returns a new instance of XSElement.
 XSEnumeration newXSEnumeration(XSObject pParent, XsEEnumeration pEnumeration)
          Returns a new instance of XSEnumeration.
 XSGroup newXSGroup(XSObject pParent, XsEChoice pChoice)
          Returns a new instance of XSGroup.
 XSGroup newXSGroup(XSObject pParent, XsESequence pSequence)
          Returns a new instance of XSGroup.
 XSGroup newXSGroup(XSObject pParent, XsTAll pAll)
          Returns a new instance of XSGroup.
 XSGroup newXSGroup(XSObject pParent, XsTGroupRef pGroupRef)
          Returns a new instance of XSGroup.
 XSGroup newXSGroup(XSObject pParent, XsTNamedGroup pNamedGroup)
          Returns a new instance of XSGroup.
 XSIdentityConstraint newXSIdentityConstraint(XSElement pParent, XsEKey key)
          Returns a new instance of XSIdentityConstraint.
 XSIdentityConstraint newXSIdentityConstraint(XSElement pParent, XsEUnique unique)
          Returns a new instance of XSIdentityConstraint.
 XSKeyRef newXSKeyRef(XSElement pParent, XsEKeyref keyRef)
          Returns a new instance of XSKeyRef.
 XSSimpleType newXSListType(XSType pParent, XsEList pList)
          Returns a new instance of XSSimpleType.
 XSSimpleType newXSListType(XSType pParent, XSType pRestrictedType, XsERestriction pRestriction)
          Returns a new instance of XSSimpleType.
 XSSimpleType newXSListType(XSType pParent, XSType pRestrictedType, XsTSimpleRestrictionType pRestriction)
          Returns a new instance of XSSimpleType.
 XSLogicalParser newXSLogicalParser()
          Returns a new instance of XSLogicalParser.
 XSNotation newXSNotation(XSObject pParent, XsENotation pNotation)
          Returns a new instance of XSNotation.
 XSSchema newXSSchema(XSContext pContext, XsESchema pSchema)
          Returns a new instance of XSSchema.
 XSSimpleContentType newXSSimpleContentType(XSType pParent, XSType pSimpleType, XsObject pBaseType)
          Returns a new instance of XSSimpleContentType.
 XSType newXSType(XSObject pParent, XsETopLevelSimpleType pType)
          Returns a new instance of XSType.
 XSType newXSType(XSObject pParent, XsTComplexType pType)
          Returns a new instance of XSType.
 XSType newXSType(XSObject pParent, XsTLocalComplexType pType)
          Returns a new instance of XSType.
 XSType newXSType(XSObject pParent, XsTLocalSimpleType pType)
          Returns a new instance of XSType.
 XSType newXSType(XSObject pParent, XsTSimpleRestrictionType pType)
          Returns a new instance of XSType.
 XSSimpleType newXSUnionType(XSType pParent, XsEUnion pUnion)
          Returns a new instance of XSSimpleType.
 XSSimpleType newXSUnionType(XSType pParent, XSType pRestrictedType, XsERestriction pRestriction)
          Returns a new instance of XSSimpleType.
 XSSimpleType newXSUnionType(XSType pParent, XSType pRestrictedType, XsTSimpleRestrictionType pRestriction)
          Returns a new instance of XSSimpleType.
 XSWildcard newXSWildcard(XSObject pParent, XsTWildcard pWildcard)
          Returns a new instance of XSWildcard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSObjectFactoryImpl

public XSObjectFactoryImpl()
Method Detail

newXSLogicalParser

public XSLogicalParser newXSLogicalParser()
Description copied from interface: XSObjectFactory

Returns a new instance of XSLogicalParser.

Specified by:
newXSLogicalParser in interface XSObjectFactory

newXSSchema

public XSSchema newXSSchema(XSContext pContext,
                            XsESchema pSchema)
                     throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSSchema.

Specified by:
newXSSchema in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSAnnotation

public XSAnnotation newXSAnnotation(XSObject pParent,
                                    XsEAnnotation pAnnotation)
                             throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSAnnotation.

Specified by:
newXSAnnotation in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSAnnotations

public XSAnnotation[] newXSAnnotations(XSObject pParent,
                                       XsEAnnotation pAnnotation)
                                throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instances of XSAnnotation.

Specified by:
newXSAnnotations in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSAppinfo

public XSAppinfo newXSAppinfo(XSObject pParent,
                              XsEAppinfo pAppinfo)
Description copied from interface: XSObjectFactory

Returns a new instance of XSAppinfo.

Specified by:
newXSAppinfo in interface XSObjectFactory

newXSAtomicType

public XSSimpleType newXSAtomicType(XSType pParent,
                                    XSType pRestrictedType,
                                    XsERestriction pRestriction)
                             throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSSimpleType.

Specified by:
newXSAtomicType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSAtomicType

public XSSimpleType newXSAtomicType(XSType pParent,
                                    XSType pRestrictedType,
                                    XsTSimpleRestrictionType pRestriction)
                             throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSSimpleType.

Specified by:
newXSAtomicType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSAttribute

public XSAttribute newXSAttribute(XSObject pParent,
                                  XsTAttribute pAttribute)
                           throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSAttribute.

Specified by:
newXSAttribute in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSAttributeGroup

public XSAttributeGroup newXSAttributeGroup(XSObject pParent,
                                            XsTAttributeGroup pGroup)
                                     throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSAttributeGroup.

Specified by:
newXSAttributeGroup in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSDocumentation

public XSDocumentation newXSDocumentation(XSObject pParent,
                                          XsEDocumentation pDocumentation)
                                   throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSDocumentation.

Specified by:
newXSDocumentation in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSElement

public XSElement newXSElement(XSObject pParent,
                              XsTElement pElement)
                       throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSElement.

Specified by:
newXSElement in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSEnumeration

public XSEnumeration newXSEnumeration(XSObject pParent,
                                      XsEEnumeration pEnumeration)
                               throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSEnumeration.

Specified by:
newXSEnumeration in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSGroup

public XSGroup newXSGroup(XSObject pParent,
                          XsTAll pAll)
                   throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSGroup.

Specified by:
newXSGroup in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSGroup

public XSGroup newXSGroup(XSObject pParent,
                          XsEChoice pChoice)
                   throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSGroup.

Specified by:
newXSGroup in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSGroup

public XSGroup newXSGroup(XSObject pParent,
                          XsESequence pSequence)
                   throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSGroup.

Specified by:
newXSGroup in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSGroup

public XSGroup newXSGroup(XSObject pParent,
                          XsTGroupRef pGroupRef)
                   throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSGroup.

Specified by:
newXSGroup in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSGroup

public XSGroup newXSGroup(XSObject pParent,
                          XsTNamedGroup pNamedGroup)
                   throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSGroup.

Specified by:
newXSGroup in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSListType

public XSSimpleType newXSListType(XSType pParent,
                                  XsEList pList)
                           throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSSimpleType.

Specified by:
newXSListType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSListType

public XSSimpleType newXSListType(XSType pParent,
                                  XSType pRestrictedType,
                                  XsERestriction pRestriction)
                           throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSSimpleType.

Specified by:
newXSListType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSListType

public XSSimpleType newXSListType(XSType pParent,
                                  XSType pRestrictedType,
                                  XsTSimpleRestrictionType pRestriction)
                           throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSSimpleType.

Specified by:
newXSListType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSType

public XSType newXSType(XSObject pParent,
                        XsETopLevelSimpleType pType)
                 throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSType.

Specified by:
newXSType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSType

public XSType newXSType(XSObject pParent,
                        XsTComplexType pType)
                 throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSType.

Specified by:
newXSType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSType

public XSType newXSType(XSObject pParent,
                        XsTLocalComplexType pType)
                 throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSType.

Specified by:
newXSType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSType

public XSType newXSType(XSObject pParent,
                        XsTLocalSimpleType pType)
                 throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSType.

Specified by:
newXSType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSType

public XSType newXSType(XSObject pParent,
                        XsTSimpleRestrictionType pType)
                 throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSType.

Specified by:
newXSType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSUnionType

public XSSimpleType newXSUnionType(XSType pParent,
                                   XsEUnion pUnion)
                            throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSSimpleType.

Specified by:
newXSUnionType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSUnionType

public XSSimpleType newXSUnionType(XSType pParent,
                                   XSType pRestrictedType,
                                   XsERestriction pRestriction)
                            throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSSimpleType.

Specified by:
newXSUnionType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSUnionType

public XSSimpleType newXSUnionType(XSType pParent,
                                   XSType pRestrictedType,
                                   XsTSimpleRestrictionType pRestriction)
                            throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSSimpleType.

Specified by:
newXSUnionType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSNotation

public XSNotation newXSNotation(XSObject pParent,
                                XsENotation pNotation)
                         throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSNotation.

Specified by:
newXSNotation in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSAny

public XSAny newXSAny(XSObject pParent,
                      XsEAny pAny)
               throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSAny.

Specified by:
newXSAny in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSSimpleContentType

public XSSimpleContentType newXSSimpleContentType(XSType pParent,
                                                  XSType pSimpleType,
                                                  XsObject pBaseType)
                                           throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSSimpleContentType.

Specified by:
newXSSimpleContentType in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSWildcard

public XSWildcard newXSWildcard(XSObject pParent,
                                XsTWildcard pWildcard)
                         throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSWildcard.

Specified by:
newXSWildcard in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSIdentityConstraint

public XSIdentityConstraint newXSIdentityConstraint(XSElement pParent,
                                                    XsEKey key)
                                             throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSIdentityConstraint.

Specified by:
newXSIdentityConstraint in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSKeyRef

public XSKeyRef newXSKeyRef(XSElement pParent,
                            XsEKeyref keyRef)
                     throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSKeyRef.

Specified by:
newXSKeyRef in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

newXSIdentityConstraint

public XSIdentityConstraint newXSIdentityConstraint(XSElement pParent,
                                                    XsEUnique unique)
                                             throws org.xml.sax.SAXException
Description copied from interface: XSObjectFactory

Returns a new instance of XSIdentityConstraint.

Specified by:
newXSIdentityConstraint in interface XSObjectFactory
Throws:
org.xml.sax.SAXException

getSchemaTransformer

public SchemaTransformer getSchemaTransformer()
Description copied from interface: XSObjectFactory
Returns the object factories schema transformer. May be null, in which case no schema transformation occurs.

Specified by:
getSchemaTransformer in interface XSObjectFactory