|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.xml.schema.GenericType org.dlese.dpc.xml.schema.SimpleType org.dlese.dpc.xml.schema.ComplexType
public class ComplexType
Wrapper for ComplexType definitions in XML Schemas.
Field Summary |
---|
Fields inherited from class org.dlese.dpc.xml.schema.GenericType |
---|
element, inline, location, name, namespace, path, schemaReader, type, xsdPrefix |
Fields inherited from interface org.dlese.dpc.xml.schema.GlobalDef |
---|
ATTRIBUTE_GROUP, BUILT_IN_TYPE, COMPLEX_TYPE, GENERIC_TYPE, GLOBAL_ATTRIBUTE, GLOBAL_DECLARATION, GLOBAL_ELEMENT, MODEL_GROUP, SIMPLE_TYPE |
Constructor Summary | |
---|---|
ComplexType(Element element,
String location,
Namespace namespace,
SchemaReader schemaReader)
Constructor for the ComplexType object |
Method Summary | |
---|---|
List |
getChoices()
Returns a list of choice elements if a choise compositor is found, and an empty list otherwise |
Element |
getComplexContent()
Gets the complexContent element of the ComplexType object. |
Compositor |
getCompositor()
Gets the compositor attribute of the ComplexType object. |
int |
getCompositorType()
Gets the compositorType attribute of the ComplexType object |
String |
getContentModel()
Gets the contentModel attribute of the ComplexType object |
int |
getDataType()
Gets the dataType attribute of the ComplexType object |
String |
getDerivationBase()
Gets the derivationBase for derived ComplexTypes. |
GlobalDef |
getDerivationType()
Gets the derivationType attribute of the ComplexType object |
int |
getDerivedCompositorType()
Gets the derivedCompositorType attribute of the ComplexType object |
String |
getExtensionBase()
Gets the name of the extension base type for complex types that derive by extension. |
Element |
getExtensionElement()
Gets the extensionElement ComplexType object |
ComplexType |
getExtensionRootType()
Recursively traverse the derived Model definitions until a base type definition is found that is not derived from another (via an extension or a restriction). |
GlobalDef |
getExtensionType()
Gets the extensionType attribute of the ComplexType object |
String |
getRestrictionBase()
Gets the name of the restriction base type for complex types that derive by restriction. |
Element |
getRestrictionElement()
Gets the restrictionElement ComplexType object. |
ComplexType |
getRestrictionRootType()
Gets the restrictionRootType attribute of the ComplexType object |
GlobalDef |
getRestrictionType()
Gets the restrictionType attribute of the ComplexType object |
Element |
getSimpleContent()
Gets the simpleContent attribute of the ComplexType object |
String |
getSimpleContentType()
Gets the base extension type of the simpleContent element of the ComplexType. |
boolean |
hasComplexContent()
Tests for presence of a simpleContent element |
boolean |
hasInlineCompositor()
NOT YET DOCUMENTED |
boolean |
hasSimpleContent()
Tests for presence of a simpleContent element |
boolean |
isAbstract()
Gets the abstract attribute of the ComplexType object |
boolean |
isDerivedContentModel()
Returns true if this complexType defines a derived content model (i.e., it has a "complexContent" element as first child. |
boolean |
isDerivedTextOnlyModel()
Returns true if this complexType defines a derived text only model (i.e., it has a "simpleContent" element as first child. |
boolean |
isDerivedType()
Gets the derivedType attribute of the ComplexType object |
protected static void |
prtln(String s)
print a string to std out |
String |
toString()
String representation of the ComplexType object |
Methods inherited from class org.dlese.dpc.xml.schema.SimpleType |
---|
getEnumerationBaseType, getSimpleEnumerationValues, getUnionMemberTypeDefs, getUnionMemberTypeNames, getUnionMemberTypesAsString, isComboUnionType, isEnumeration, isUnion |
Methods inherited from class org.dlese.dpc.xml.schema.GenericType |
---|
extractDocumentation, filterChildren, filterChildren, getChildren, getDocumentation, getElement, getElementAsXml, getEnumerationValues, getEnumerationValues, getFirstChild, getLocation, getName, getNamespace, getQualifiedInstanceName, getQualifiedName, getSchemaReader, getType, getXsdPrefix, isAnyType, isAttributeGroup, isBuiltIn, isComplexType, isEnumerationType, isGlobalAttribute, isGlobalDeclaration, isGlobalElement, isInline, isModelGroup, isSimpleType, isTypeDef, printElements, setInline |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ComplexType(Element element, String location, Namespace namespace, SchemaReader schemaReader)
element
- Schema element defining typelocation
- File in which type definition existsnamespace
- NOT YET DOCUMENTEDschemaReader
- reader instance that processed this definitionMethod Detail |
---|
public int getDataType()
getDataType
in interface GlobalDef
getDataType
in class SimpleType
public String getContentModel()
public Compositor getCompositor()
public boolean hasInlineCompositor()
public boolean isAbstract()
public int getCompositorType()
public List getChoices()
public boolean isDerivedType()
public boolean isDerivedContentModel()
public boolean hasComplexContent()
public Element getComplexContent()
public boolean isDerivedTextOnlyModel()
public boolean hasSimpleContent()
public Element getSimpleContent()
public String getSimpleContentType()
public int getDerivedCompositorType()
public Element getExtensionElement()
public Element getRestrictionElement()
public String getExtensionBase()
public GlobalDef getExtensionType()
public ComplexType getExtensionRootType()
public String getRestrictionBase()
public GlobalDef getRestrictionType()
public ComplexType getRestrictionRootType()
public String getDerivationBase()
Returns the base type for restriction or extention elements of either derivedContentModels or derivedTestOnlyModels.
public GlobalDef getDerivationType()
public String toString()
toString
in interface GlobalDef
toString
in class SimpleType
protected static void prtln(String s)
s
- Description of the Parameter
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |