public class ModelGroupDefinition extends ModelGroup implements SerializableSchemaComponent
SchemaComponent.ValidationStatuscontentModel, simplifiedContentModelCOMPONENT_FUNCTION_TYPE| 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, setContentModelelaborate, getColumnNumber, getConfiguration, getFixupStatus, getGeneratedId, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, hasSameLocation, isValidationNeeded, makeXPathExpressionPropertyRecord, saveLocation, setConfiguration, setFixupStatus, setGeneratedId, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitelaborategetRedefinitionLevel, getValidationStatuspublic 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 ModelGroupMissingComponentException - if the schema contains
unresolved references to required componentspublic boolean isPointless(ModelGroup container)
isPointless in class ModelGroupcontainer - the particle that contains this model group definitionpublic void lookForCycles(java.util.Stack references,
SchemaCompiler compiler)
throws SchemaException
lookForCycles in interface UserSchemaComponentlookForCycles in class ModelGroupreferences - 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 reportingSchemaExceptionpublic boolean validate(SchemaCompiler compiler) throws SchemaException
validate in interface UserSchemaComponentvalidate in class ModelGroupSchemaExceptionpublic boolean isSameGroup(ModelGroupDefinition other)
other - the other grouppublic void serialize(SchemaModelSerializer serializer) throws XPathException
serialize in interface SerializableSchemaComponentserialize in class ModelGroupserializer - used to receive the serialized outputMissingComponentException - if the component cannot be serialized because it contains dangling referencesXPathException - if serialization failspublic java.lang.String getCompositorName()
ModelGroupgetCompositorName in class ModelGrouppublic Function getComponentAsFunction()
SchemaComponentgetComponentAsFunction in interface SchemaComponentgetComponentAsFunction in class ModelGroupCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.