Tabnine Logo
Schema.messageFullName
Code IndexAdd Tabnine to your IDE (free)

How to use
messageFullName
method
in
io.protostuff.Schema

Best Java code snippets using io.protostuff.Schema.messageFullName (Showing top 16 results out of 315)

origin: protostuff/protostuff

@Override
public String messageFullName()
{
  return schema.messageFullName();
}
origin: protostuff/protostuff

@Override
public String messageFullName()
{
  return wrappedSchema.messageFullName();
}
origin: protostuff/protostuff

@Override
protected Input begin(Pipe.Schema<?> pipeSchema) throws IOException
{
  if (parser.nextToken() != JsonToken.START_OBJECT)
  {
    throw new JsonInputException("Expected token: { but was " +
        parser.getCurrentToken() + " on message " +
        pipeSchema.wrappedSchema.messageFullName());
  }
  return jsonInput;
}
origin: protostuff/protostuff

/**
 * Merges the {@code message} from the JsonParser using the given {@code schema}.
 */
public static <T> void mergeFrom(JsonParser parser, T message, Schema<T> schema,
    boolean numeric) throws IOException
{
  if (parser.nextToken() != JsonToken.START_OBJECT)
  {
    throw new JsonInputException("Expected token: { but was " +
        parser.getCurrentToken() + " on message " +
        schema.messageFullName());
  }
  schema.mergeFrom(new JsonInput(parser, numeric), message);
  if (parser.getCurrentToken() != JsonToken.END_OBJECT)
  {
    throw new JsonInputException("Expected token: } but was " +
        parser.getCurrentToken() + " on message " +
        schema.messageFullName());
  }
}
origin: protostuff/protostuff

@Override
public <T> void handleUnknownField(int fieldNumber, Schema<T> schema) throws IOException
{
  final String name = parser.getLocalName();
  while (true)
  {
    switch (next())
    {
      case END_ELEMENT:
        if (name.equals(parser.getLocalName()))
        {
          // we can skip this unknown scalar field.
          nextTag();
          return;
        }
        throw new XmlInputException("Unknown field: " + name + " on message " +
            schema.messageFullName());
      case END_DOCUMENT:
        // malformed xml.
      case START_ELEMENT:
        // message field
        // we do not know how deep this message is
        throw new XmlInputException("Unknown field: " + name + " on message " +
            schema.messageFullName());
    }
  }
}
origin: protostuff/protostuff

schema.messageFullName());
  schema.messageFullName());
  schema.messageFullName());
origin: protostuff/protostuff

parser.getCurrentToken() + " on message " + schema.messageFullName());
origin: protostuff/protostuff

  @Override
  protected void end(Pipe.Schema<?> pipeSchema, Input input,
      boolean cleanupOnly) throws IOException
  {
    if (cleanupOnly)
    {
      parser.close();
      return;
    }
    assert input == jsonInput;
    final JsonToken token = parser.getCurrentToken();
    parser.close();
    if (token != JsonToken.END_OBJECT)
    {
      throw new JsonInputException("Expected token: } but was " +
          token + " on message " +
          pipeSchema.wrappedSchema.messageFullName());
    }
  }
};
origin: protostuff/protostuff

schema.messageFullName());
schema.messageFullName());
origin: protostuff/protostuff

      schema.messageFullName());
case END_DOCUMENT:
      schema.messageFullName());
origin: io.protostuff/protostuff-json

@Override
protected Input begin(Pipe.Schema<?> pipeSchema) throws IOException
{
  if (parser.nextToken() != JsonToken.START_OBJECT)
  {
    throw new JsonInputException("Expected token: { but was " +
        parser.getCurrentToken() + " on message " +
        pipeSchema.wrappedSchema.messageFullName());
  }
  return jsonInput;
}
origin: io.protostuff/protostuff-json

/**
 * Merges the {@code message} from the JsonParser using the given {@code schema}.
 */
public static <T> void mergeFrom(JsonParser parser, T message, Schema<T> schema,
    boolean numeric) throws IOException
{
  if (parser.nextToken() != JsonToken.START_OBJECT)
  {
    throw new JsonInputException("Expected token: { but was " +
        parser.getCurrentToken() + " on message " +
        schema.messageFullName());
  }
  schema.mergeFrom(new JsonInput(parser, numeric), message);
  if (parser.getCurrentToken() != JsonToken.END_OBJECT)
  {
    throw new JsonInputException("Expected token: } but was " +
        parser.getCurrentToken() + " on message " +
        schema.messageFullName());
  }
}
origin: io.protostuff/protostuff-json

schema.messageFullName());
  schema.messageFullName());
  schema.messageFullName());
origin: io.protostuff/protostuff-json

parser.getCurrentToken() + " on message " + schema.messageFullName());
origin: io.protostuff/protostuff-json

  @Override
  protected void end(Pipe.Schema<?> pipeSchema, Input input,
      boolean cleanupOnly) throws IOException
  {
    if (cleanupOnly)
    {
      parser.close();
      return;
    }
    assert input == jsonInput;
    final JsonToken token = parser.getCurrentToken();
    parser.close();
    if (token != JsonToken.END_OBJECT)
    {
      throw new JsonInputException("Expected token: } but was " +
          token + " on message " +
          pipeSchema.wrappedSchema.messageFullName());
    }
  }
};
origin: io.protostuff/protostuff-json

schema.messageFullName());
schema.messageFullName());
io.protostuffSchemamessageFullName

Javadoc

Returns the full name of the message tied to this schema. Allows custom schemas to provide a custom name other than typeClass().getName();

Popular methods of Schema

  • newMessage
  • writeTo
  • mergeFrom
  • isInitialized
  • getFieldName
  • typeClass
  • getFieldNumber
  • messageName
    Returns the simple name of the message tied to this schema. Allows custom schemas to provide a custo

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Best IntelliJ plugins
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