public class ModelGroupDefinition extends ModelGroup implements SerializableSchemaComponent
contentModel, simplifiedContentModelCOMPONENT_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, setContentModelelaborate, getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, makeXPathExpressionPropertyRecord, setConfiguration, setFixupStatus, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitelaborategetRedefinitionLevel, getValidationStatuspublic 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 ModelGroupUnresolvedReferenceException - 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(Stack references, SchemaCompiler compiler) throws SchemaException, UnresolvedReferenceException
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 reportingSchemaExceptionUnresolvedReferenceExceptionpublic 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 outputXPathException - if serialization failspublic String getCompositorName()
ModelGroupgetCompositorName in class ModelGrouppublic FunctionItem getComponentAsFunction()
SchemaComponentgetComponentAsFunction in interface SchemaComponentgetComponentAsFunction in class ModelGroupCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.