org.yawlfoundation.yawl.schema
Class XSDUtil

java.lang.Object
  extended by org.yawlfoundation.yawl.schema.XSDUtil

public class XSDUtil
extends Object

/**

Author:
Lachlan Aldred Date: 27/08/2004 Time: 13:27:30

Constructor Summary
XSDUtil()
           
 
Method Summary
static org.eclipse.xsd.XSDElementDeclaration addElementDeclaration(org.eclipse.xsd.XSDSchema schema, String localName, String type)
          Worker method to create an element declaration.
static String convertToString(org.eclipse.xsd.XSDConcreteComponent component)
           
static org.eclipse.xsd.XSDSchema createBlankSchema()
          Creates a blank XSdSchema
static org.eclipse.xsd.XSDComplexTypeDefinition createComplexTypeDefinition(org.eclipse.xsd.XSDSchema schema, String localName)
          Creates a complex type def to the schema.
static org.eclipse.xsd.XSDFactory getXSDFactory()
          Gets an XSDFactory
static void printComponent(Writer output, org.eclipse.xsd.XSDConcreteComponent xsdConcreteComponent)
           
static void serializeXSDSchema(org.eclipse.xsd.XSDSchema schema, OutputStream output)
          Helper method to serialize an XSD Schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSDUtil

public XSDUtil()
Method Detail

createBlankSchema

public static org.eclipse.xsd.XSDSchema createBlankSchema()
Creates a blank XSdSchema

Returns:
an XSDSchema blank.

serializeXSDSchema

public static void serializeXSDSchema(org.eclipse.xsd.XSDSchema schema,
                                      OutputStream output)
Helper method to serialize an XSD Schema.

Parameters:
schema - the schema to serialize.
output - the desired stream to send the output.

addElementDeclaration

public static org.eclipse.xsd.XSDElementDeclaration addElementDeclaration(org.eclipse.xsd.XSDSchema schema,
                                                                          String localName,
                                                                          String type)
                                                                   throws YSchemaBuildingException
Worker method to create an element declaration.

Parameters:
schema - the schem to attach ot to.
localName - the name of the new element.
type - the type of the new element (must already exist).
Returns:
the element declaration.
Throws:
YSchemaBuildingException

createComplexTypeDefinition

public static org.eclipse.xsd.XSDComplexTypeDefinition createComplexTypeDefinition(org.eclipse.xsd.XSDSchema schema,
                                                                                   String localName)
Creates a complex type def to the schema.

Parameters:
schema -
localName -
Returns:
the complex type definition created

getXSDFactory

public static org.eclipse.xsd.XSDFactory getXSDFactory()
Gets an XSDFactory

Returns:
an instantiated XSDFactory

printComponent

public static void printComponent(Writer output,
                                  org.eclipse.xsd.XSDConcreteComponent xsdConcreteComponent)

convertToString

public static String convertToString(org.eclipse.xsd.XSDConcreteComponent component)


Copyright © 2004-2012 The YAWL Foundation.