DLESE Tools
v1.6.0

org.dlese.dpc.xml.schema
Class GlobalAttribute

java.lang.Object
  extended by org.dlese.dpc.xml.schema.GlobalDeclaration
      extended by org.dlese.dpc.xml.schema.GlobalAttribute
All Implemented Interfaces:
GlobalDef

public class GlobalAttribute
extends GlobalDeclaration

Wrapper for global attribute 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:attribute ...>", 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").

GlobalAttribute definitions are associated with a type in one of the following ways:

Version:
$Id: GlobalAttribute.java,v 1.3 2009/03/20 23:34:01 jweather Exp $
Author:
Jonathan Ostwald

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
GlobalAttribute(Element element, String location, Namespace namespace, SchemaReader schemaReader)
          Constructor for the GlobalAttribute object
 
Method Summary
 int getDataType()
          Gets the dataType attribute of the GlobalAttribute object
 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

GlobalAttribute

public GlobalAttribute(Element element,
                       String location,
                       Namespace namespace,
                       SchemaReader schemaReader)
Constructor for the GlobalAttribute object

Parameters:
element - NOT YET DOCUMENTED
location - NOT YET DOCUMENTED
namespace - NOT YET DOCUMENTED
Method Detail

getDataType

public int getDataType()
Gets the dataType attribute of the GlobalAttribute object

Specified by:
getDataType in interface GlobalDef
Overrides:
getDataType in class GlobalDeclaration
Returns:
The dataType value

toString

public String toString()
NOT YET DOCUMENTED

Specified by:
toString in interface GlobalDef
Overrides:
toString in class GlobalDeclaration
Returns:
NOT YET DOCUMENTED

DLESE Tools
v1.6.0