public String fullyValid() { if (mState.isAcceptingState()) { return null; } TreeSet names = mState.getNextNames(); return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } }
public String tryToValidate(PrefixedName elemName) { // Do we have a follow state with that key? DFAState next = mState.findNext(elemName); if (next == null) { // Nope; let's show what we'd have expected instead... TreeSet names = mState.getNextNames(); if (names.size() == 0) { // expected end tag? return "Expected $END"; } // Either end tag, or another tag? if (mState.isAcceptingState()) { return "Expected <"+StringUtil.concatEntries(names, ">, <", null)+"> or $END"; } return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } mState = next; return null; }
public String tryToValidate(NameKey elemName) { // Do we have a follow state with that key? DFAState next = mState.findNext(elemName); if (next == null) { // Nope; let's show what we'd have expected instead... TreeSet names = mState.getNextNames(); if (names.size() == 0) { // expected end tag? return "Expected $END"; } // Either end tag, or another tag? if (mState.isAcceptingState()) { return "Expected <"+StringUtil.concatEntries(names, ">, <", null)+"> or $END"; } return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } mState = next; return null; }
public String fullyValid() { if (mState.isAcceptingState()) { return null; } TreeSet names = mState.getNextNames(); return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } }
public String tryToValidate(NameKey elemName) { // Do we have a follow state with that key? DFAState next = mState.findNext(elemName); if (next == null) { // Nope; let's show what we'd have expected instead... TreeSet names = mState.getNextNames(); if (names.size() == 0) { // expected end tag? return "Expected $END"; } // Either end tag, or another tag? if (mState.isAcceptingState()) { return "Expected <"+StringUtil.concatEntries(names, ">, <", null)+"> or $END"; } return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } mState = next; return null; }
@Override public String fullyValid() { if (mState.isAcceptingState()) { return null; } TreeSet<PrefixedName> names = mState.getNextNames(); return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } }
public String fullyValid() { if (mState.isAcceptingState()) { return null; } TreeSet names = mState.getNextNames(); return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } }
public String tryToValidate(PrefixedName elemName) { // Do we have a follow state with that key? DFAState next = mState.findNext(elemName); if (next == null) { // Nope; let's show what we'd have expected instead... TreeSet names = mState.getNextNames(); if (names.size() == 0) { // expected end tag? return "Expected $END"; } // Either end tag, or another tag? if (mState.isAcceptingState()) { return "Expected <"+StringUtil.concatEntries(names, ">, <", null)+"> or $END"; } return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } mState = next; return null; }
public String fullyValid() { if (mState.isAcceptingState()) { return null; } TreeSet names = mState.getNextNames(); return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } }
@Override public String tryToValidate(PrefixedName elemName) { // Do we have a follow state with that key? DFAState next = mState.findNext(elemName); if (next == null) { // Nope; let's show what we'd have expected instead... TreeSet<PrefixedName> names = mState.getNextNames(); if (names.size() == 0) { // expected end tag? return "Expected $END"; } // Either end tag, or another tag? if (mState.isAcceptingState()) { return "Expected <"+StringUtil.concatEntries(names, ">, <", null)+"> or $END"; } return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } mState = next; return null; }
public String tryToValidate(NameKey elemName) { // Do we have a follow state with that key? DFAState next = mState.findNext(elemName); if (next == null) { // Nope; let's show what we'd have expected instead... TreeSet names = mState.getNextNames(); if (names.size() == 0) { // expected end tag? return "Expected $END"; } // Either end tag, or another tag? if (mState.isAcceptingState()) { return "Expected <"+StringUtil.concatEntries(names, ">, <", null)+"> or $END"; } return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } mState = next; return null; }
public String fullyValid() { if (mState.isAcceptingState()) { return null; } TreeSet names = mState.getNextNames(); return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } }
@Override public String fullyValid() { if (mState.isAcceptingState()) { return null; } TreeSet<PrefixedName> names = mState.getNextNames(); return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } }
@Override public String fullyValid() { if (mState.isAcceptingState()) { return null; } TreeSet<PrefixedName> names = mState.getNextNames(); return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } }
@Override public String tryToValidate(PrefixedName elemName) { // Do we have a follow state with that key? DFAState next = mState.findNext(elemName); if (next == null) { // Nope; let's show what we'd have expected instead... TreeSet<PrefixedName> names = mState.getNextNames(); if (names.size() == 0) { // expected end tag? return "Expected $END"; } // Either end tag, or another tag? if (mState.isAcceptingState()) { return "Expected <"+StringUtil.concatEntries(names, ">, <", null)+"> or $END"; } return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } mState = next; return null; }
@Override public String tryToValidate(PrefixedName elemName) { // Do we have a follow state with that key? DFAState next = mState.findNext(elemName); if (next == null) { // Nope; let's show what we'd have expected instead... TreeSet<PrefixedName> names = mState.getNextNames(); if (names.size() == 0) { // expected end tag? return "Expected $END"; } // Either end tag, or another tag? if (mState.isAcceptingState()) { return "Expected <"+StringUtil.concatEntries(names, ">, <", null)+"> or $END"; } return "Expected <"+StringUtil.concatEntries(names, ">, <", "> or <")+">"; } mState = next; return null; }