xml.parser
Class XSDSchemaToCompletion
java.lang.Object
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
|
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 |
XSDSchemaToCompletion
public XSDSchemaToCompletion()
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 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 caching
- Throws:
java.io.IOException
org.xml.sax.SAXException