Example #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;
  }
Example #2
0
 /**
  * Returns the QName of the declaration.
  *
  * @return null if the declaration is anonymous.
  */
 public static QName getName(XSDeclaration decl) {
   String local = decl.getName();
   if (local == null) return null;
   return new QName(decl.getTargetNamespace(), local);
 }
 public boolean canBeMappedToTypeSafeEnum(XSDeclaration decl) {
   return canBeMappedToTypeSafeEnum(decl.getTargetNamespace(), decl.getName());
 }