org.apache.xmlbeans.impl.schema
Class SchemaModelGroupImpl

java.lang.Object
  extended by org.apache.xmlbeans.impl.schema.SchemaModelGroupImpl
All Implemented Interfaces:
SchemaAnnotated, SchemaComponent, SchemaModelGroup

public class SchemaModelGroupImpl
extends java.lang.Object
implements SchemaModelGroup


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.xmlbeans.SchemaModelGroup
SchemaModelGroup.Ref
 
Field Summary
 
Fields inherited from interface org.apache.xmlbeans.SchemaComponent
ANNOTATION, ATTRIBUTE, ATTRIBUTE_GROUP, ELEMENT, IDENTITY_CONSTRAINT, MODEL_GROUP, NOTATION, TYPE
 
Constructor Summary
SchemaModelGroupImpl(org.apache.xmlbeans.impl.schema.SchemaContainer container)
           
SchemaModelGroupImpl(org.apache.xmlbeans.impl.schema.SchemaContainer container, javax.xml.namespace.QName name)
           
 
Method Summary
 SchemaAnnotation getAnnotation()
          Returns the Schema annotation object or null if none present
 java.lang.String getAttFormDefault()
           
 java.lang.String getChameleonNamespace()
           
 SchemaComponent.Ref getComponentRef()
          Used for on-demand loading of schema components.
 int getComponentType()
          Returns SchemaComponent.GROUP.
 java.lang.String getElemFormDefault()
           
 javax.xml.namespace.QName getName()
          The name of the model group.
 XmlObject getParseObject()
           
 SchemaModelGroup.Ref getRef()
           
 java.lang.String getSourceName()
          The name of resource that represends the source .xsd in which this component was defined (if known)
See: SchemaTypeLoader.getSourceAsStream(String)

Example:
 java.lang.String getTargetNamespace()
           
 SchemaTypeSystem getTypeSystem()
          Returns the typesystem within which this component definition resides
 java.lang.Object getUserData()
          Returns user-specific information.
 void init(javax.xml.namespace.QName name, java.lang.String targetNamespace, boolean chameleon, java.lang.String elemFormDefault, java.lang.String attFormDefault, boolean redefinition, XmlObject x, SchemaAnnotation a, java.lang.Object userData)
           
 boolean isRedefinition()
           
 void setFilename(java.lang.String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaModelGroupImpl

public SchemaModelGroupImpl(org.apache.xmlbeans.impl.schema.SchemaContainer container)

SchemaModelGroupImpl

public SchemaModelGroupImpl(org.apache.xmlbeans.impl.schema.SchemaContainer container,
                            javax.xml.namespace.QName name)
Method Detail

init

public void init(javax.xml.namespace.QName name,
                 java.lang.String targetNamespace,
                 boolean chameleon,
                 java.lang.String elemFormDefault,
                 java.lang.String attFormDefault,
                 boolean redefinition,
                 XmlObject x,
                 SchemaAnnotation a,
                 java.lang.Object userData)

getTypeSystem

public SchemaTypeSystem getTypeSystem()
Description copied from interface: SchemaComponent
Returns the typesystem within which this component definition resides

Specified by:
getTypeSystem in interface SchemaComponent

getComponentType

public int getComponentType()
Description copied from interface: SchemaModelGroup
Returns SchemaComponent.GROUP.

Specified by:
getComponentType in interface SchemaComponent
Specified by:
getComponentType in interface SchemaModelGroup

setFilename

public void setFilename(java.lang.String filename)

getSourceName

public java.lang.String getSourceName()
Description copied from interface: SchemaComponent
The name of resource that represends the source .xsd in which this component was defined (if known)
See: SchemaTypeLoader.getSourceAsStream(String)

Example:
   SchemaType schemaType = ..;
   InputStream is = schemaType.getTypeSystem().getSourceAsStream(schemaType.getSourceName());
 

Specified by:
getSourceName in interface SchemaComponent

getName

public javax.xml.namespace.QName getName()
Description copied from interface: SchemaModelGroup
The name of the model group.

Specified by:
getName in interface SchemaComponent
Specified by:
getName in interface SchemaModelGroup

getParseObject

public XmlObject getParseObject()

getTargetNamespace

public java.lang.String getTargetNamespace()

getChameleonNamespace

public java.lang.String getChameleonNamespace()

getElemFormDefault

public java.lang.String getElemFormDefault()

getAttFormDefault

public java.lang.String getAttFormDefault()

isRedefinition

public boolean isRedefinition()

getAnnotation

public SchemaAnnotation getAnnotation()
Description copied from interface: SchemaAnnotated
Returns the Schema annotation object or null if none present

Specified by:
getAnnotation in interface SchemaAnnotated

getRef

public SchemaModelGroup.Ref getRef()

getComponentRef

public SchemaComponent.Ref getComponentRef()
Description copied from interface: SchemaComponent
Used for on-demand loading of schema components.

Specified by:
getComponentRef in interface SchemaComponent

getUserData

public java.lang.Object getUserData()
Description copied from interface: SchemaModelGroup
Returns user-specific information.

Specified by:
getUserData in interface SchemaModelGroup
See Also:
SchemaBookmark