Package com.sun.xml.analysis.types
Class SchemaProcessor
- java.lang.Object
-
- 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
Constructors Constructor Description SchemaProcessor(URL schema)SchemaProcessor(List<URL> schema)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Set<XSDataType>>getAttributeToXSDataTypeMap()Map<String,Set<XSDataType>>getElementToXSDataTypeMap()static voidmain(String[] args)voidprocess()Process the schema.voidprocess(Set<XSDataType> filter)Process the schema.
-
-
-
Method Detail
-
getElementToXSDataTypeMap
public Map<String,Set<XSDataType>> getElementToXSDataTypeMap()
-
getAttributeToXSDataTypeMap
public Map<String,Set<XSDataType>> getAttributeToXSDataTypeMap()
-
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
-
-