示例#1
0
 /**
  * Tests whether this is a dynamic error that may be reported statically if it is detected
  * statically
  *
  * @return true if the error can be reported statically
  */
 public boolean isReportableStatically() {
   if (isStaticError() || isTypeError()) {
     return true;
   }
   StructuredQName err = errorCode;
   if (err != null && err.getURI().equals(NamespaceConstant.ERR)) {
     String local = err.getLocalPart();
     return local.equals("XTDE1260")
         || local.equals("XTDE1280")
         || local.equals("XTDE1390")
         || local.equals("XTDE1400")
         || local.equals("XDTE1428")
         || local.equals("XTDE1440")
         || local.equals("XTDE1460");
   }
   return false;
 }
示例#2
0
 /*@Nullable*/ public String getErrorCodeLocalPart() {
   return (errorCode == null ? null : errorCode.getLocalPart());
 }