electric.xml.io.simple
Class Restriction

java.lang.Object
  extended byelectric.xml.io.Type
      extended byelectric.xml.io.simple.SimpleType
          extended byelectric.xml.io.simple.Restriction
All Implemented Interfaces:
java.lang.Cloneable, IEXMLLoggingConstants, ILoggingConstants, IMapConstants, INamed, IQNamed, ISchemaConstants

public final class Restriction
extends SimpleType
implements IMapConstants

Restriction

Author:
webMethods

Field Summary
 
Fields inherited from class electric.xml.io.Type
anonymous, dominant, inhibit, javaName, name, schema
 
Fields inherited from interface electric.xml.io.mapping.IMapConstants
ARRAY_NAMESPACE, CLASS, COMPONENT_NAMESPACE, DEFAULT_PACKAGE, DOMINANT, FACTORY, FIELD, GET, JAVA, MAP_PREFIX, NAME, NAMESPACE, PACKAGE, PROPERTY, SCHEMA, SET, TYPE
 
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
Restriction()
           
Restriction(Namespaces namespaces, java.lang.String namespace, java.lang.String name, java.lang.Class javaClass)
           
Restriction(Namespaces namespaces, java.lang.String namespace, java.lang.String name, Element schema)
           
Restriction(Schema schemaObject, java.lang.String name, Element schemaElement)
           
 
Method Summary
 void addDependencies(java.util.Vector dependencies)
          Add all the types that this type depends on into the Vector.
 SimpleType getBaseType()
           
 java.lang.Object getEnumerationValue(java.lang.Object enumeration)
           
 java.lang.Object getEnumerationValue(java.lang.String string)
           
 java.lang.Class getJavaClass()
           
 java.lang.String getJavaName()
          Return the javaName that this type represents.
 boolean isInhibit()
          Inhibited types don't generate any Java Classes when run through schema2java and wsdl2java.
 boolean isMultiReference()
          Types derived from string and byte[] should be multi-ref
 void readObject(IReader reader, Value value)
          Read in the object from the reader, and place it in the value.
 void readSchema(Element schema)
           
 java.lang.String toString()
           
 void writeJava(JavaSource source)
          Write out a java representation of this class into the JavaSource.
 void writeObject(IWriter writer, java.lang.Object object)
          Write out the object specified to the writer using this type.
 void writeSchema(Element element)
          Append the schema for this type to the element passed in.
 void writeSchema(Element element, boolean annotated)
          Append the schema for this type to the element passed in.
 
Methods inherited from class electric.xml.io.simple.SimpleType
readObjectRestricted, writeObjectRestricted
 
Methods inherited from class electric.xml.io.Type
addAllDependencies, appendSchema, equals, findJavaClass, getJavaClassWithCheck, getName, getName, getName, getName, getNamespace, getNamespaces, getQName, getRuntimeType, getSchema, getSchemaElement, getType, getXSDPrefix, getXSIPrefix, isAnonymous, isDominant, isStandard, setAnonymous, setDominant, setInhibit, setJavaClass, setJavaName, setName, setNamespaces, setSchema, useAnonymous, useSchemaElement, writeType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Restriction

public Restriction()

Restriction

public Restriction(Namespaces namespaces,
                   java.lang.String namespace,
                   java.lang.String name,
                   java.lang.Class javaClass)
            throws SchemaException
Parameters:
namespaces -
namespace -
name -
javaClass -

Restriction

public Restriction(Namespaces namespaces,
                   java.lang.String namespace,
                   java.lang.String name,
                   Element schema)
            throws SchemaException
Parameters:
namespaces -
namespace -
name -
schema -
Throws:
SchemaException

Restriction

public Restriction(Schema schemaObject,
                   java.lang.String name,
                   Element schemaElement)
            throws SchemaException
Parameters:
schemaObject -
name -
schemaElement -
Throws:
SchemaException
Method Detail

toString

public java.lang.String toString()

isMultiReference

public boolean isMultiReference()
Types derived from string and byte[] should be multi-ref

Overrides:
isMultiReference in class SimpleType

getBaseType

public SimpleType getBaseType()
                       throws SchemaException
Throws:
SchemaException

addDependencies

public void addDependencies(java.util.Vector dependencies)
                     throws SchemaException
Description copied from class: Type
Add all the types that this type depends on into the Vector. A type depends on anything it extends from, and anything that it contains.

Overrides:
addDependencies in class Type
Parameters:
dependencies -
Throws:
SchemaException

getJavaName

public java.lang.String getJavaName()
                             throws SchemaException
Description copied from class: Type
Return the javaName that this type represents. See ArrayType for the throws.

Overrides:
getJavaName in class Type
Throws:
SchemaException

getJavaClass

public java.lang.Class getJavaClass()
                             throws SchemaException
Overrides:
getJavaClass in class Type
Returns:
the javaClass that this type represents. Could return null.
Throws:
SchemaException

writeJava

public void writeJava(JavaSource source)
               throws SchemaException
Description copied from class: Type
Write out a java representation of this class into the JavaSource.

Overrides:
writeJava in class Type
Parameters:
source -
Throws:
SchemaException

getEnumerationValue

public java.lang.Object getEnumerationValue(java.lang.Object enumeration)
                                     throws java.io.IOException
Parameters:
enumeration -
Throws:
java.io.IOException

getEnumerationValue

public java.lang.Object getEnumerationValue(java.lang.String string)
                                     throws java.io.IOException
Parameters:
string -
Throws:
java.io.IOException

readSchema

public void readSchema(Element schema)
                throws SchemaException
Overrides:
readSchema in class Type
Parameters:
schema -
Throws:
SchemaException

writeSchema

public void writeSchema(Element element)
                 throws SchemaException
Description copied from class: Type
Append the schema for this type to the element passed in.

Overrides:
writeSchema in class Type
Parameters:
element -
Throws:
SchemaException

writeSchema

public void writeSchema(Element element,
                        boolean annotated)
                 throws SchemaException
Description copied from class: Type
Append the schema for this type to the element passed in. If annotated is true, attach map: attributes where appropriate.

Overrides:
writeSchema in class Type
Parameters:
element -
annotated -
Throws:
SchemaException

writeObject

public void writeObject(IWriter writer,
                        java.lang.Object object)
                 throws java.io.IOException
Description copied from class: Type
Write out the object specified to the writer using this type.

Specified by:
writeObject in class Type
Parameters:
writer -
object -
Throws:
java.io.IOException

readObject

public void readObject(IReader reader,
                       Value value)
                throws java.io.IOException
Description copied from class: Type
Read in the object from the reader, and place it in the value.

Specified by:
readObject in class Type
Parameters:
reader -
value -
Throws:
java.io.IOException

isInhibit

public boolean isInhibit()
Description copied from class: Type
Inhibited types don't generate any Java Classes when run through schema2java and wsdl2java.

Overrides:
isInhibit in class Type


copyright© 2001-2004 by webMethods All Rights Reserved.