Tabnine Logo
ErrorConsts.tokenTypeDesc
Code IndexAdd Tabnine to your IDE (free)

How to use
tokenTypeDesc
method
in
com.ctc.wstx.cfg.ErrorConsts

Best Java code snippets using com.ctc.wstx.cfg.ErrorConsts.tokenTypeDesc (Showing top 20 results out of 315)

origin: org.codehaus.woodstox/woodstox-core-asl

protected String tokenTypeDesc(int type)
{
  return ErrorConsts.tokenTypeDesc(type);
}
origin: org.codehaus.woodstox/woodstox-core-asl

protected String getErrorDesc(int errorType, int currEvent)
{
  // Defaults are mostly fine, except we can easily add event type desc
  switch (errorType) {
  case ERR_GETELEMTEXT_NOT_START_ELEM:
    return ErrorConsts.ERR_STATE_NOT_STELEM+", got "+ErrorConsts.tokenTypeDesc(currEvent);
  case ERR_GETELEMTEXT_NON_TEXT_EVENT:
    return "Expected a text token, got "+ErrorConsts.tokenTypeDesc(currEvent);
  case ERR_NEXTTAG_NON_WS_TEXT:
    return "Only all-whitespace CHARACTERS/CDATA (or SPACE) allowed for nextTag(), got "+ErrorConsts.tokenTypeDesc(currEvent);
  case ERR_NEXTTAG_WRONG_TYPE:
    return "Got "+ErrorConsts.tokenTypeDesc(currEvent)+", instead of START_ELEMENT, END_ELEMENT or SPACE";
  }
  return null;
}
origin: org.codehaus.woodstox/woodstox-core-asl

protected void reportInvalidContent(int evtType)
  throws XMLStreamException
{
  switch (mVldContent) {
  case XMLValidator.CONTENT_ALLOW_NONE:
    reportValidationProblem(ErrorConsts.ERR_VLD_EMPTY,
                getTopElementDesc(),
                ErrorConsts.tokenTypeDesc(evtType));
    break;
  case XMLValidator.CONTENT_ALLOW_WS:
    reportValidationProblem(ErrorConsts.ERR_VLD_NON_MIXED,
                getTopElementDesc());
    break;
  case XMLValidator.CONTENT_ALLOW_VALIDATABLE_TEXT:
  case XMLValidator.CONTENT_ALLOW_ANY_TEXT:
    /* Not 100% sure if this should ever happen... depends on
     * interpretation of 'any' content model?
     */
    reportValidationProblem(ErrorConsts.ERR_VLD_ANY,
                getTopElementDesc(),
                ErrorConsts.tokenTypeDesc(evtType));
    break;
  default: // should never occur:
    reportValidationProblem("Internal error: trying to report invalid content for "+evtType);
  }
}
origin: org.codehaus.woodstox/woodstox-core-asl

  reportValidationProblem(ErrorConsts.ERR_VLD_EMPTY,
              mElementStack.getTopElementDesc(),
              ErrorConsts.tokenTypeDesc(evtType));
  break;
case XMLValidator.CONTENT_ALLOW_WS:
              ErrorConsts.tokenTypeDesc(evtType));
  break;
default: // should never occur:
origin: org.codehaus.woodstox/woodstox-core-asl

  return next;
throwParseError("Received event "+ErrorConsts.tokenTypeDesc(next)
        +", instead of START_ELEMENT or END_ELEMENT.");
origin: org.codehaus.woodstox/woodstox-core-asl

      if (be == null) { // incorrect state
        throw new WstxException("Trying to create START_ELEMENT when current event is "
                    +ErrorConsts.tokenTypeDesc(sr.getEventType()),
                    loc);
case ATTRIBUTE:
  throw new WstxException("Internal error: should not get "
              +ErrorConsts.tokenTypeDesc(r.getEventType()));
default:
  throw new IllegalStateException("Unrecognized event type "+r.getEventType()+".");
origin: org.codehaus.woodstox/woodstox-core-lgpl

protected String tokenTypeDesc(int type)
{
  return ErrorConsts.tokenTypeDesc(type);
}
origin: Nextdoor/bender

protected String tokenTypeDesc(int type) {
  return ErrorConsts.tokenTypeDesc(type);
}
origin: woodstox/wstx-asl

protected String tokenTypeDesc(int type)
{
  return ErrorConsts.tokenTypeDesc(type);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

protected String tokenTypeDesc(int type)
{
  return ErrorConsts.tokenTypeDesc(type);
}
origin: woodstox/wstx-lgpl

protected String tokenTypeDesc(int type)
{
  return ErrorConsts.tokenTypeDesc(type);
}
origin: FasterXML/woodstox

protected String tokenTypeDesc(int type) {
  return ErrorConsts.tokenTypeDesc(type);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

private void throwNotTextual(int type)
{
  throw new IllegalStateException("Not a textual event ("
                  +ErrorConsts.tokenTypeDesc(mCurrEvent)+")");
}
origin: woodstox/wstx-lgpl

private void throwNotTextual(int type)
{
  throw new IllegalStateException("Not a textual event ("
                  +ErrorConsts.tokenTypeDesc(mCurrEvent)+")");
}
origin: woodstox/wstx-asl

private void throwNotTextual(int type)
{
  throw new IllegalStateException("Not a textual event ("
                  +ErrorConsts.tokenTypeDesc(mCurrEvent)+")");
}
origin: woodstox/wstx-asl

public String getLocalName()
{
  if (mCurrEvent == START_ELEMENT || mCurrEvent == END_ELEMENT) {
    return safeGetLocalName(mCurrNode);
  }
  if (mCurrEvent == ENTITY_REFERENCE) {
    return mCurrNode.getNodeName();
  }
  throw new IllegalStateException("Current state ("+ErrorConsts.tokenTypeDesc(mCurrEvent)+") not START_ELEMENT, END_ELEMENT or ENTITY_REFERENCE");
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

public String toString() {
  return "["+ErrorConsts.tokenTypeDesc(getEventType())+"]";
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

public String getLocalName()
{
  if (mCurrEvent == START_ELEMENT || mCurrEvent == END_ELEMENT) {
    return safeGetLocalName(mCurrNode);
  }
  if (mCurrEvent == ENTITY_REFERENCE) {
    return mCurrNode.getNodeName();
  }
  throw new IllegalStateException("Current state ("+ErrorConsts.tokenTypeDesc(mCurrEvent)+") not START_ELEMENT, END_ELEMENT or ENTITY_REFERENCE");
}
origin: woodstox/wstx-lgpl

public String getLocalName()
{
  if (mCurrEvent == START_ELEMENT || mCurrEvent == END_ELEMENT) {
    return safeGetLocalName(mCurrNode);
  }
  if (mCurrEvent == ENTITY_REFERENCE) {
    return mCurrNode.getNodeName();
  }
  throw new IllegalStateException("Current state ("+ErrorConsts.tokenTypeDesc(mCurrEvent)+") not START_ELEMENT, END_ELEMENT or ENTITY_REFERENCE");
}
origin: woodstox/wstx-lgpl

public String toString() {
  return "["+ErrorConsts.tokenTypeDesc(getEventType())+"]";
}
com.ctc.wstx.cfgErrorConststokenTypeDesc

Popular methods of ErrorConsts

    Popular in Java

    • Making http post requests using okhttp
    • runOnUiThread (Activity)
    • setContentView (Activity)
    • startActivity (Activity)
    • Window (java.awt)
      A Window object is a top-level window with no borders and no menubar. The default layout for a windo
    • ServerSocket (java.net)
      This class represents a server-side socket that waits for incoming client connections. A ServerSocke
    • URLConnection (java.net)
      A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
    • StringTokenizer (java.util)
      Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
    • AtomicInteger (java.util.concurrent.atomic)
      An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
    • Base64 (org.apache.commons.codec.binary)
      Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
    • Github Copilot alternatives
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now