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,
SourceLocator locator)
Creates a new Model Group definition
|
Modifier and Type | Method and Description |
---|---|
FunctionItem |
getComponentAsFunction()
Get the schema component in the form of a function item.
|
String |
getCompositorName()
Get the name of the compositor used in this model group
|
int |
getFingerprint() |
String |
getName()
Returns the local part of the name of this named Group.
|
int |
getNameCode() |
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(Stack references,
SchemaCompiler compiler)
This method is called to look for cycles.
|
void |
serialize(SchemaModelSerializer serializer)
Serialize the schema component
|
void |
setNameCode(int 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, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, makeXPathExpressionPropertyRecord, setConfiguration, setFixupStatus, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
elaborate
getRedefinitionLevel, getValidationStatus
public ModelGroupDefinition(EnterpriseConfiguration config, 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 int getNameCode()
public int getFingerprint()
public void setNameCode(int nameCode)
public String getName()
public String getTargetNamespace()
public boolean isEmptiable() throws UnresolvedReferenceException
isEmptiable
in class ModelGroup
UnresolvedReferenceException
- 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(Stack references, SchemaCompiler compiler) throws SchemaException, UnresolvedReferenceException
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
UnresolvedReferenceException
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 outputXPathException
- if serialization failspublic String getCompositorName()
ModelGroup
getCompositorName
in class ModelGroup
public FunctionItem getComponentAsFunction()
SchemaComponent
getComponentAsFunction
in interface SchemaComponent
getComponentAsFunction
in class ModelGroup
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.