|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xsd.util.XSDConstants org.eclipse.xsd.util.XSDUtil
public final class XSDUtil
Nested Class Summary | |
---|---|
static interface |
XSDUtil.ByteSequence
This is a wrapper type for representing values of type hexBin or base64Binary. |
static class |
XSDUtil.URICrossReferencer
A cross referencer that finds each usage of URI or collection of URIs. |
static class |
XSDUtil.UsageCrossReferencer
A cross referencer that finds each usage of an EObject or collection of EObjects, excluding uninteresting derived references. |
static class |
XSDUtil.XSDNamedComponentCrossReferencer
A cross referencer that finds all XSDNamedComponents and each usage of an XSDNamedComponent. |
Field Summary |
---|
Constructor Summary | |
---|---|
XSDUtil()
|
Method Summary | |
---|---|
static java.util.List<XSDDiagnostic> |
checkComplexContent(XSDComplexTypeDefinition xsdComplexTypeDefinition,
java.lang.String part,
java.lang.String anchor,
org.w3c.dom.Element element)
Checks the given element's content against the given complex type. |
static java.util.List<XSDDiagnostic> |
checkComplexContent(XSDSchema schema,
java.lang.String complexTypeName,
java.lang.String part,
java.lang.String anchor,
org.w3c.dom.Element element)
Checks the given element's content against the complex type with a given name retrieved from the given schema. |
static XSDNamedComponent |
findInSortedList(java.util.List<? extends XSDNamedComponent> xsdNamedComponents,
java.lang.String namespace,
java.lang.String name)
Returns the matching named component in the sorted list of named components, or null if there isn't one. |
static XSDSchema |
getSchemaForSchema(java.lang.String schemaForSchemaURI)
Returns the singleton instance of the schema for schemas. |
Methods inherited from class org.eclipse.xsd.util.XSDConstants |
---|
hfpNodeType, hfpNodeType, isAnySimpleType, isAnyType, isOrIsDerivedFrom, isOrIsDerivedFrom, isOrIsDerivedFromID, isSchemaForSchemaNamespace, isSchemaHasFacetAndPropertyNamespace, isSchemaInstanceNamespace, isURType, isXMLNamespace, isXMLNSNamespace, lookupQName, lookupQNameForAttribute, lookupQualifier, nodeType, nodeType, resolveSchemaLocation, uri |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSDUtil()
Method Detail |
---|
public static XSDSchema getSchemaForSchema(java.lang.String schemaForSchemaURI)
public static XSDNamedComponent findInSortedList(java.util.List<? extends XSDNamedComponent> xsdNamedComponents, java.lang.String namespace, java.lang.String name)
null if there isn't one.
This list is expected to be one of a schema's
list of named components.
- Parameters:
xsdNamedComponents
- a sorted lists of named components.namespace
- the namespace to searchname
- the name to search
- Returns:
- the matching component, if any.
public static java.util.List<XSDDiagnostic> checkComplexContent(XSDSchema schema, java.lang.String complexTypeName, java.lang.String part, java.lang.String anchor, org.w3c.dom.Element element)
schema
- the schema used to retrieve the complex type definition.complexTypeName
- the name of the complex type.part
- annotation part.anchor
- annotation anchor.element
- the element whose content to check.
public static java.util.List<XSDDiagnostic> checkComplexContent(XSDComplexTypeDefinition xsdComplexTypeDefinition, java.lang.String part, java.lang.String anchor, org.w3c.dom.Element element)
xsdComplexTypeDefinition
- the reference type.part
- annotation part.anchor
- annotation anchor.element
- the element whose content to check.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |