public class ModelGroupDefinition extends ModelGroup implements SerializableSchemaComponent
contentModel, simplifiedContentModel
COMPONENT_FUNCTION_TYPE, FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING
Constructor and Description |
---|
ModelGroupDefinition(EnterpriseConfiguration config,
javax.xml.transform.SourceLocator locator)
Creates a new Model Group definition
|
Modifier and Type | Method and Description |
---|---|
Function |
getComponentAsFunction()
Get the schema component in the form of a function item.
|
java.lang.String |
getCompositorName()
Get the name of the compositor used in this model group
|
StructuredQName |
getModelGroupName() |
java.lang.String |
getName()
Returns the local part of the name of this named Group.
|
java.lang.String |
getTargetNamespace()
Returns the namespace URI of the name of this named Group.
|
boolean |
isEmptiable()
Determine if empty content is allowed
|
boolean |
isPointless(ModelGroup container)
Test whether the compositor is pointless, as described in XML Schema Part 1
Schema Component Constraint: Particle Valid (Restriction)
|
boolean |
isSameGroup(ModelGroupDefinition other)
Test whether this is the same group as another group.
|
void |
lookForCycles(java.util.Stack references,
SchemaCompiler compiler)
This method is called to look for cycles.
|
void |
serialize(SchemaModelSerializer serializer)
Serialize the schema component
|
void |
setModelGroupName(StructuredQName nameCode) |
void |
setRedefinedModelGroupDefinition(ModelGroupDefinition other)
Set the model group definition that this one redefines.
|
boolean |
validate(SchemaCompiler compiler)
Checks the validity of this Model Group Definition.
|
addParticle, checkElements, compile, containsAll, containsElementWildcard, fixup, gatherAllPermittedElements, getContentModelSize, getElementParticleCardinality, getElementParticleType, getParticles, getSimplifiedContentModel, getTerm, isEmpty, markVulnerableSubParticles, setContentModel
elaborate, getColumnNumber, getConfiguration, getFixupStatus, getGeneratedId, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, hasSameLocation, makeXPathExpressionPropertyRecord, saveLocation, setConfiguration, setFixupStatus, setGeneratedId, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
elaborate
getRedefinitionLevel, getValidationStatus
public ModelGroupDefinition(EnterpriseConfiguration config, javax.xml.transform.SourceLocator locator)
config
- the Configuration to which this Model Group definition belongslocator
- the source location of the model group definitionpublic void setRedefinedModelGroupDefinition(ModelGroupDefinition other)
other
- the model group that this one redefinespublic void setModelGroupName(StructuredQName nameCode)
public StructuredQName getModelGroupName()
public java.lang.String getName()
public java.lang.String getTargetNamespace()
public boolean isEmptiable() throws MissingComponentException
isEmptiable
in class ModelGroup
MissingComponentException
- if the schema contains
unresolved references to required componentspublic boolean isPointless(ModelGroup container)
isPointless
in class ModelGroup
container
- the particle that contains this model group definitionpublic void lookForCycles(java.util.Stack references, SchemaCompiler compiler) throws SchemaException, MissingComponentException
lookForCycles
in interface UserSchemaComponent
lookForCycles
in class ModelGroup
references
- A list of objects that contain direct or indirect references
to this object, and that must therefore not be referred to from this object.compiler
- used for error reportingSchemaException
MissingComponentException
public boolean validate(SchemaCompiler compiler) throws SchemaException
validate
in interface UserSchemaComponent
validate
in class ModelGroup
SchemaException
public boolean isSameGroup(ModelGroupDefinition other)
other
- the other grouppublic void serialize(SchemaModelSerializer serializer) throws XPathException
serialize
in interface SerializableSchemaComponent
serialize
in class ModelGroup
serializer
- used to receive the serialized outputMissingComponentException
- if the component cannot be serialized because it contains dangling referencesXPathException
- if serialization failspublic java.lang.String getCompositorName()
ModelGroup
getCompositorName
in class ModelGroup
public Function getComponentAsFunction()
SchemaComponent
getComponentAsFunction
in interface SchemaComponent
getComponentAsFunction
in class ModelGroup
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.