electric.xml.io.schema
Class SchemaElement

java.lang.Object
  extended byelectric.xml.io.schema.SchemaEntry
      extended byelectric.xml.io.schema.SchemaElement
All Implemented Interfaces:
electric.xml.io.accessors.IAccessible, IEXMLLoggingConstants, ILoggingConstants, INamed, IQNamed, ISchemaConstants

public final class SchemaElement
extends SchemaEntry

SchemaElement corresponds to a Schema Declaration from XML Schema Part 1: Structures, section 3.3 "Element Declarations".

Author:
webMethods

Field Summary
 
Fields inherited from class electric.xml.io.schema.SchemaEntry
accessor, ANONYMOUS_SUFFIX, DEFAULT_MIN_OCCURS, maxOccurs, minOccurs, name, parentType, refQName, schema, type, typeQName, useAnonymous
 
Fields inherited from interface electric.xml.io.schema.ISchemaConstants
ABSTRACT, ALL, ANNOTATION, ANY, ANY_ATTRIBUTE, ANY_TYPE, ANY_URI, ARRAY, ARRAY_PREFIX, ARRAY_TYPE, ATTRIBUTE, ATTRIBUTE_FORM_DEFAULT, ATTRIBUTE_GROUP, BASE, BASE_64_BINARY, BOOLEAN, BYTE, CHOICE, COMPLEX_CONTENT, COMPLEX_TYPE, DATE_TIME, DECIMAL, DOMINANT_SIMPLE_TYPE_NAMES, DOUBLE, DURATION, ELEMENT, ELEMENT_FORM_DEFAULT, ENUMERATION, EXTENSION, FLOAT, FORM, FRACTION_DIGITS, GROUP, HEX_BINARY, HREF, ID, IMPORT, INCLUDE, INSTANCE_SUFFIX, INT, INTEGER, LENGTH, LONG, MAX_EXCLUSIVE, MAX_INCLUSIVE, MAX_LENGTH, MAX_OCCURS, MIN_EXCLUSIVE, MIN_INCLUSIVE, MIN_LENGTH, MIN_OCCURS, NAME, NAMESPACE, NIL, NILLABLE, NOTATION, NULL, ONE, PATTERN, POUND_ID, PROCESS_CONTENTS, QNAME, QUALIFIED, REDEFINE, REF, RESTRICTION, ROOT, SCHEMA, SCHEMA_LOCATION, SEQUENCE, SHORT, SIMPLE_CONTENT, SIMPLE_TYPE, SOAP_ENCODING, SOAP_ENCODING_ARRAY, SOAP12_ENCODING, SOAP12_ENCODING_ARRAY, SOAPENC, STAR, STRING, TARGET_NAMESPACE, TIME, TOTAL_DIGITS, TYPE, UNBOUNDED, UNQUALIFIED, UNSIGNED_SHORT, USE, VALUE, WHITESPACE, WSDL_ARRAY, WSDL_HTTP, WSDL_MIME, WSDL_NAMESPACE, WSDL_SOAP, XSD_BOOLEAN, XSD_BYTE, XSD_DOUBLE, XSD_FLOAT, XSD_INT, XSD_LONG, XSD_PREFIX, XSD_SHORT, XSD_STRING, XSD_UNSIGNED_SHORT, XSI_PREFIX, ZERO
 
Fields inherited from interface electric.xml.IEXMLLoggingConstants
MAPPING_EVENT, SCHEMA_EVENT
 
Fields inherited from interface electric.util.log.ILoggingConstants
CLASSLOADER_EVENT, COMMAND_EVENT, COMMENT_EVENT, CONFIG_EVENT, DEBUG_EVENT, ELECTRIC_LOGGING_PROPERTY, ERROR_EVENT, EXCEPTION_EVENT, FILE_EVENT, LICENSE_EVENT, RESOURCES_EVENT, SECURITY_EVENT, SHUTDOWN_EVENT, SOURCE_EVENT, SQL_EVENT, STARTUP_EVENT, WARNING_EVENT
 
Constructor Summary
SchemaElement(Namespaces namespaces, java.lang.String namespace, java.lang.String name, Type type)
           
SchemaElement(Schema schemaObject, Element schemaElement)
           
SchemaElement(Schema schema, java.lang.String name, Type type)
           
SchemaElement(java.lang.String name, Type type, boolean qualify)
           
SchemaElement(Type parentType, Element schema)
           
SchemaElement(Type parentType, java.lang.String name, Type type)
           
 
Method Summary
 void appendSchema(Element root, boolean annotated)
           
 boolean getBare()
           
 boolean getDisableTypeOmission()
           
 java.lang.Class getJavaClass()
           
 java.lang.String getJavaName()
           
 int getMaxOccurs()
           
 int getMinOccurs()
           
 boolean getNillable()
           
 java.lang.Object getQName()
           
 Type getType()
           
 boolean isQualify()
           
 void readObject(IReader reader, Value value)
           
 void readSchema(Element schema)
           
 void setBare(boolean bare)
           
 void setDisableTypeOmission(boolean flag)
           
 void setMaxOccurs(int maxOccurs)
           
 void setMinOccurs(int minOccurs)
           
 void setNillable(boolean nillable)
           
 void setQualify(boolean qualify)
           
 java.lang.String toString()
           
 void writeJava(JavaSource source)
           
 void writeObject(IWriter writer, java.lang.Object object)
           
 void writeSchema(Element schema)
           
 void writeSchema(Element schema, boolean annotated)
           
 
Methods inherited from class electric.xml.io.schema.SchemaEntry
addDependencies, appendImport, appendImport, getAccessibleJavaClass, getAccessibleJavaName, getDefaultMinOccurs, getName, getName, getNamespace, getQNameParts, getSchema, getSchemaElement, isUseAnonymous, setAccessor, setAnonymousSuffix, setDefaultMinOccurs, setName, setSchema, setUseAnonymous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SchemaElement

public SchemaElement(Namespaces namespaces,
                     java.lang.String namespace,
                     java.lang.String name,
                     Type type)
Parameters:
namespaces -
namespace -
name -
type -

SchemaElement

public SchemaElement(Schema schemaObject,
                     Element schemaElement)
              throws SchemaException
Parameters:
schemaObject -
schemaElement -

SchemaElement

public SchemaElement(Schema schema,
                     java.lang.String name,
                     Type type)
              throws SchemaException
Parameters:
schema -
name -
type -

SchemaElement

public SchemaElement(Type parentType,
                     Element schema)
              throws SchemaException
Parameters:
parentType -
schema -
Throws:
SchemaException

SchemaElement

public SchemaElement(Type parentType,
                     java.lang.String name,
                     Type type)
Parameters:
parentType -
name -
type -

SchemaElement

public SchemaElement(java.lang.String name,
                     Type type,
                     boolean qualify)
Parameters:
name -
type -
Method Detail

toString

public java.lang.String toString()

getNillable

public boolean getNillable()

setNillable

public void setNillable(boolean nillable)
Parameters:
nillable -

getBare

public boolean getBare()

setBare

public void setBare(boolean bare)
Parameters:
bare -

getMinOccurs

public int getMinOccurs()

setMinOccurs

public void setMinOccurs(int minOccurs)
Parameters:
minOccurs -

getMaxOccurs

public int getMaxOccurs()

setMaxOccurs

public void setMaxOccurs(int maxOccurs)
Parameters:
maxOccurs -

getQName

public java.lang.Object getQName()
Returns:

getType

public Type getType()
             throws SchemaException
Overrides:
getType in class SchemaEntry
Throws:
SchemaException

getJavaName

public java.lang.String getJavaName()
                             throws SchemaException
Specified by:
getJavaName in class SchemaEntry
Throws:
SchemaException

getJavaClass

public java.lang.Class getJavaClass()
                             throws SchemaException
Specified by:
getJavaClass in class SchemaEntry
Throws:
SchemaException

writeJava

public void writeJava(JavaSource source)
               throws SchemaException
Parameters:
source -
Throws:
SchemaException

readSchema

public void readSchema(Element schema)
                throws SchemaException
Parameters:
schema -
Throws:
SchemaException

writeSchema

public void writeSchema(Element schema)
                 throws SchemaException
Parameters:
schema -
Throws:
SchemaException

writeSchema

public void writeSchema(Element schema,
                        boolean annotated)
                 throws SchemaException
Parameters:
schema -
annotated -
Throws:
SchemaException

appendSchema

public void appendSchema(Element root,
                         boolean annotated)
                  throws SchemaException
Parameters:
root -
annotated -
Throws:
SchemaException

setDisableTypeOmission

public void setDisableTypeOmission(boolean flag)
Parameters:
flag -

getDisableTypeOmission

public boolean getDisableTypeOmission()

isQualify

public boolean isQualify()

setQualify

public void setQualify(boolean qualify)
Parameters:
qualify -

writeObject

public void writeObject(IWriter writer,
                        java.lang.Object object)
                 throws java.io.IOException
Specified by:
writeObject in class SchemaEntry
Parameters:
writer -
object -
Throws:
java.io.IOException

readObject

public void readObject(IReader reader,
                       Value value)
                throws java.io.IOException
Specified by:
readObject in class SchemaEntry
Parameters:
reader -
value -
Throws:
java.io.IOException


copyright© 2001-2004 by webMethods All Rights Reserved.