|
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.GlobalDeclaration org.dlese.dpc.xml.schema.GlobalElement
public class GlobalElement
Wrapper for global element definitions in an XML Schema, which are defined as an immediate child of the schema element.
Global element definitions have an XPath of the form "/<xsd:schema/<xsd:element ...>", where the "xsd" prefix refers to a prefix that is mapped to the W3C Schema for Datatype Definitions (having a namespace uri of "http://www.w3.org/2001/XMLSchema").
GlobalElement definitions are associated with a type in one of the following ways:
Field Summary |
---|
Fields inherited from class org.dlese.dpc.xml.schema.GlobalDeclaration |
---|
debug, documentation, element, location, name, namespace, 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 | |
---|---|
GlobalElement(Element element,
String location,
Namespace namespace,
SchemaReader schemaReader)
Constructor for the GlobalElement object |
Method Summary | |
---|---|
void |
addSubstitutionGroupMember(GlobalElement typeDef)
NOTE: substitutionGroupMembers must have the same type as head or be derived from head's type |
int |
getDataType()
Gets the dataType attribute of the GlobalElement object |
List |
getSubstitutionGroup()
|
boolean |
hasSubstitutionGroup()
|
boolean |
isAbstract()
|
boolean |
isHeadElement()
|
boolean |
isSubstitutionGroupMember()
|
String |
toString()
NOT YET DOCUMENTED |
Methods inherited from class org.dlese.dpc.xml.schema.GlobalDeclaration |
---|
extractDocumentation, getDocumentation, getElement, getElementAsXml, getLocation, getName, getNamespace, getQualifiedInstanceName, getQualifiedName, getSchemaReader, getType, isAnyType, isAttributeGroup, isBuiltIn, isComplexType, isGlobalAttribute, isGlobalDeclaration, isGlobalElement, isModelGroup, isSimpleType, isTypeDef, prtln, prtlnErr |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GlobalElement(Element element, String location, Namespace namespace, SchemaReader schemaReader)
element
- NOT YET DOCUMENTEDlocation
- NOT YET DOCUMENTEDnamespace
- NOT YET DOCUMENTEDMethod Detail |
---|
public int getDataType()
getDataType
in interface GlobalDef
getDataType
in class GlobalDeclaration
public boolean isAbstract()
public boolean isHeadElement()
public boolean isSubstitutionGroupMember()
public boolean hasSubstitutionGroup()
public List getSubstitutionGroup()
public void addSubstitutionGroupMember(GlobalElement typeDef)
public String toString()
toString
in interface GlobalDef
toString
in class GlobalDeclaration
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |