public class XSDSchemaToCompletion
extends java.lang.Object
Constructor and Description |
---|
XSDSchemaToCompletion() |
Modifier and Type | Method and Description |
---|---|
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) |
public static java.util.Map<java.lang.String,CompletionInfo> modelToCompletionInfo(org.apache.xerces.xs.XSModel model)
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
location
- location of the schema to parseschemaLocation
- namespace-location pairs found in xsi:schemaLocation attribute. Used to resolve imported schemanonsSchemaLocation
- location found in xsi:noNamespaceSchemaLocation attribute. Used to resolve imported schemaerrorHandler
- to report errors while parsing the schemabuffer
- requesting buffer, for cachingjava.io.IOException
org.xml.sax.SAXException