Package org.apache.xmlbeans.impl.schema
Class SchemaModelGroupImpl
java.lang.Object
org.apache.xmlbeans.impl.schema.SchemaModelGroupImpl
- All Implemented Interfaces:
SchemaAnnotated
,SchemaComponent
,SchemaModelGroup
public class SchemaModelGroupImpl extends 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
Constructors Constructor Description SchemaModelGroupImpl(org.apache.xmlbeans.impl.schema.SchemaContainer container)
SchemaModelGroupImpl(org.apache.xmlbeans.impl.schema.SchemaContainer container, QName name)
-
Method Summary
Modifier and Type Method Description SchemaAnnotation
getAnnotation()
Returns the Schema annotation object or null if none presentString
getAttFormDefault()
String
getChameleonNamespace()
SchemaComponent.Ref
getComponentRef()
Used for on-demand loading of schema components.int
getComponentType()
Returns SchemaComponent.GROUP.String
getElemFormDefault()
QName
getName()
The name of the model group.XmlObject
getParseObject()
SchemaModelGroup.Ref
getRef()
String
getSourceName()
The name of resource that represends the source .xsd in which this component was defined (if known)
See:SchemaTypeLoader.getSourceAsStream(String)
Example:String
getTargetNamespace()
SchemaTypeSystem
getTypeSystem()
Returns the typesystem within which this component definition residesObject
getUserData()
Returns user-specific information.void
init(QName name, String targetNamespace, boolean chameleon, String elemFormDefault, String attFormDefault, boolean redefinition, XmlObject x, SchemaAnnotation a, Object userData)
boolean
isRedefinition()
void
setFilename(String filename)
-
Constructor Details
-
SchemaModelGroupImpl
public SchemaModelGroupImpl(org.apache.xmlbeans.impl.schema.SchemaContainer container) -
SchemaModelGroupImpl
-
-
Method Details
-
init
-
getTypeSystem
Description copied from interface:SchemaComponent
Returns the typesystem within which this component definition resides- Specified by:
getTypeSystem
in interfaceSchemaComponent
-
getComponentType
public int getComponentType()Description copied from interface:SchemaModelGroup
Returns SchemaComponent.GROUP.- Specified by:
getComponentType
in interfaceSchemaComponent
- Specified by:
getComponentType
in interfaceSchemaModelGroup
-
setFilename
-
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 interfaceSchemaComponent
-
getName
Description copied from interface:SchemaModelGroup
The name of the model group.- Specified by:
getName
in interfaceSchemaComponent
- Specified by:
getName
in interfaceSchemaModelGroup
-
getParseObject
-
getTargetNamespace
-
getChameleonNamespace
-
getElemFormDefault
-
getAttFormDefault
-
isRedefinition
public boolean isRedefinition() -
getAnnotation
Description copied from interface:SchemaAnnotated
Returns the Schema annotation object or null if none present- Specified by:
getAnnotation
in interfaceSchemaAnnotated
-
getRef
-
getComponentRef
Description copied from interface:SchemaComponent
Used for on-demand loading of schema components.- Specified by:
getComponentRef
in interfaceSchemaComponent
-
getUserData
Description copied from interface:SchemaModelGroup
Returns user-specific information.- Specified by:
getUserData
in interfaceSchemaModelGroup
- See Also:
SchemaBookmark
-