Beispiel #1
0
  /**
   * If this reference refers to the given declaration, resolve the reference now. This is used to
   * implement redefinition.
   */
  public void redefine(XSDeclaration d) {
    if (!d.getTargetNamespace().equals(name.getNamespaceURI())
        || !d.getName().equals(name.getName())) return;

    ref = d;
    manager = null;
    name = null;
    source = null;
  }
Beispiel #2
0
 private void resolve() throws SAXException {
   ref = resolveReference(name);
   if (ref == null)
     manager.reportError(Messages.format(getErrorProperty(), name.getQualifiedName()), source);
 }
Beispiel #3
0
 protected Object resolveReference(UName name) {
   return super.schema.getIdentityConstraint(name.getNamespaceURI(), name.getName());
 }
Beispiel #4
0
 protected Object resolveReference(UName name) {
   return super.schema.getAttributeDecl(name.getNamespaceURI(), name.getName());
 }
Beispiel #5
0
 protected Object resolveReference(UName name) {
   return super.schema.getModelGroupDecl(name.getNamespaceURI(), name.getName());
 }
Beispiel #6
0
 protected Object resolveReference(UName name) {
   return super.schema.getComplexType(name.getNamespaceURI(), name.getName());
 }
Beispiel #7
0
    protected Object resolveReference(UName name) {
      Object o = super.schema.getSimpleType(name.getNamespaceURI(), name.getName());
      if (o != null) return o;

      return super.schema.getComplexType(name.getNamespaceURI(), name.getName());
    }