com.sun.xml.analysis.types
Class SchemaProcessor

java.lang.Object
  extended by com.sun.xml.analysis.types.SchemaProcessor

public class SchemaProcessor
extends Object

A Schema processor that collects the XSD simple types of elements and attributes declarations.

Maps of element/attribute local name to a set of XSDataType are created when a schema is processed.

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
SchemaProcessor(List<URL> schema)
           
SchemaProcessor(URL schema)
           
 
Method Summary
 Map<String,Set<XSDataType>> getAttributeToXSDataTypeMap()
           
 Map<String,Set<XSDataType>> getElementToXSDataTypeMap()
           
static void main(String[] args)
           
 void process()
          Process the schema.
 void process(Set<XSDataType> filter)
          Process the schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaProcessor

public SchemaProcessor(URL schema)

SchemaProcessor

public SchemaProcessor(List<URL> schema)
Method Detail

getElementToXSDataTypeMap

public Map<String,Set<XSDataType>> getElementToXSDataTypeMap()

getAttributeToXSDataTypeMap

public Map<String,Set<XSDataType>> getAttributeToXSDataTypeMap()

process

public void process()
             throws Exception
Process the schema.

Throws:
Exception

process

public void process(Set<XSDataType> filter)
             throws Exception
Process the schema.

Parameters:
filter - if not null only include elements/attributes with simple types if it is present in the Set of XS data type. Otherwise all elements/attributes with simple types are included.
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2012 Oracle Corpration. All Rights Reserved.