xml.parser
Class XSDSchemaToCompletion

java.lang.Object
  extended by xml.parser.XSDSchemaToCompletion

public class XSDSchemaToCompletion
extends java.lang.Object

turns a Xerces XSD object model into CompletionInfo

Version:
$Id: XSDSchemaToCompletion.java 21833 2012-06-18 23:30:44Z ezust $
Author:
kerik-sf

Constructor Summary
XSDSchemaToCompletion()
           
 
Method Summary
static java.util.Map<java.lang.String,CompletionInfo> getCompletionInfoFromSchema(java.lang.String location, java.lang.String schemaLocation, java.lang.String nonsSchemaLocation, org.xml.sax.ErrorHandler errorHandler, org.gjt.sp.jedit.Buffer buffer)
          parse a schema and return CompletionInfos for all its target namespaces
static java.util.Map<java.lang.String,CompletionInfo> modelToCompletionInfo(org.apache.xerces.xs.XSModel model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSDSchemaToCompletion

public XSDSchemaToCompletion()
Method Detail

modelToCompletionInfo

public static java.util.Map<java.lang.String,CompletionInfo> modelToCompletionInfo(org.apache.xerces.xs.XSModel model)

getCompletionInfoFromSchema

public static java.util.Map<java.lang.String,CompletionInfo> getCompletionInfoFromSchema(java.lang.String location,
                                                                                         java.lang.String schemaLocation,
                                                                                         java.lang.String nonsSchemaLocation,
                                                                                         org.xml.sax.ErrorHandler errorHandler,
                                                                                         org.gjt.sp.jedit.Buffer buffer)
                                                                                  throws java.io.IOException,
                                                                                         org.xml.sax.SAXException
parse a schema and return CompletionInfos for all its target namespaces

Parameters:
location - location of the schema to parse
schemaLocation - namespace-location pairs found in xsi:schemaLocation attribute. Used to resolve imported schema
nonsSchemaLocation - location found in xsi:noNamespaceSchemaLocation attribute. Used to resolve imported schema
errorHandler - to report errors while parsing the schema
buffer - requesting buffer, for caching
Throws:
java.io.IOException
org.xml.sax.SAXException