All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.nav.brukernotifikasjon.schemas.Innboks Maven / Gradle / Ivy

There is a newer version: 1.2020.03.25-11.14-c3621e6d211a
Show newest version
/**
 * Autogenerated by Avro
 *
 * DO NOT EDIT DIRECTLY
 */
package no.nav.brukernotifikasjon.schemas;

import org.apache.avro.generic.GenericArray;
import org.apache.avro.specific.SpecificData;
import org.apache.avro.util.Utf8;
import org.apache.avro.message.BinaryMessageEncoder;
import org.apache.avro.message.BinaryMessageDecoder;
import org.apache.avro.message.SchemaStore;

@org.apache.avro.specific.AvroGenerated
public class Innboks extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
  private static final long serialVersionUID = -8060691285679956898L;
  public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Innboks\",\"namespace\":\"no.nav.brukernotifikasjon.schemas\",\"fields\":[{\"name\":\"produsent\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"tidspunkt\",\"type\":\"long\",\"logicalType\":\"timestamp-millis\"},{\"name\":\"fodselsnummer\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"eventId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"grupperingsId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"tekst\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"link\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"sikkerhetsnivaa\",\"type\":\"int\"}]}");
  public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }

  private static SpecificData MODEL$ = new SpecificData();

  private static final BinaryMessageEncoder ENCODER =
      new BinaryMessageEncoder(MODEL$, SCHEMA$);

  private static final BinaryMessageDecoder DECODER =
      new BinaryMessageDecoder(MODEL$, SCHEMA$);

  /**
   * Return the BinaryMessageEncoder instance used by this class.
   * @return the message encoder used by this class
   */
  public static BinaryMessageEncoder getEncoder() {
    return ENCODER;
  }

  /**
   * Return the BinaryMessageDecoder instance used by this class.
   * @return the message decoder used by this class
   */
  public static BinaryMessageDecoder getDecoder() {
    return DECODER;
  }

  /**
   * Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
   * @param resolver a {@link SchemaStore} used to find schemas by fingerprint
   * @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore
   */
  public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
    return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
  }

  /**
   * Serializes this Innboks to a ByteBuffer.
   * @return a buffer holding the serialized data for this instance
   * @throws java.io.IOException if this instance could not be serialized
   */
  public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
    return ENCODER.encode(this);
  }

  /**
   * Deserializes a Innboks from a ByteBuffer.
   * @param b a byte buffer holding serialized data for an instance of this class
   * @return a Innboks instance decoded from the given buffer
   * @throws java.io.IOException if the given bytes could not be deserialized into an instance of this class
   */
  public static Innboks fromByteBuffer(
      java.nio.ByteBuffer b) throws java.io.IOException {
    return DECODER.decode(b);
  }

  @Deprecated public java.lang.String produsent;
  @Deprecated public long tidspunkt;
  @Deprecated public java.lang.String fodselsnummer;
  @Deprecated public java.lang.String eventId;
  @Deprecated public java.lang.String grupperingsId;
  @Deprecated public java.lang.String tekst;
  @Deprecated public java.lang.String link;
  @Deprecated public int sikkerhetsnivaa;

  /**
   * Default constructor.  Note that this does not initialize fields
   * to their default values from the schema.  If that is desired then
   * one should use newBuilder().
   */
  public Innboks() {}

  /**
   * All-args constructor.
   * @param produsent The new value for produsent
   * @param tidspunkt The new value for tidspunkt
   * @param fodselsnummer The new value for fodselsnummer
   * @param eventId The new value for eventId
   * @param grupperingsId The new value for grupperingsId
   * @param tekst The new value for tekst
   * @param link The new value for link
   * @param sikkerhetsnivaa The new value for sikkerhetsnivaa
   */
  public Innboks(java.lang.String produsent, java.lang.Long tidspunkt, java.lang.String fodselsnummer, java.lang.String eventId, java.lang.String grupperingsId, java.lang.String tekst, java.lang.String link, java.lang.Integer sikkerhetsnivaa) {
    this.produsent = produsent;
    this.tidspunkt = tidspunkt;
    this.fodselsnummer = fodselsnummer;
    this.eventId = eventId;
    this.grupperingsId = grupperingsId;
    this.tekst = tekst;
    this.link = link;
    this.sikkerhetsnivaa = sikkerhetsnivaa;
  }

  public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
  public org.apache.avro.Schema getSchema() { return SCHEMA$; }
  // Used by DatumWriter.  Applications should not call.
  public java.lang.Object get(int field$) {
    switch (field$) {
    case 0: return produsent;
    case 1: return tidspunkt;
    case 2: return fodselsnummer;
    case 3: return eventId;
    case 4: return grupperingsId;
    case 5: return tekst;
    case 6: return link;
    case 7: return sikkerhetsnivaa;
    default: throw new org.apache.avro.AvroRuntimeException("Bad index");
    }
  }

  // Used by DatumReader.  Applications should not call.
  @SuppressWarnings(value="unchecked")
  public void put(int field$, java.lang.Object value$) {
    switch (field$) {
    case 0: produsent = (java.lang.String)value$; break;
    case 1: tidspunkt = (java.lang.Long)value$; break;
    case 2: fodselsnummer = (java.lang.String)value$; break;
    case 3: eventId = (java.lang.String)value$; break;
    case 4: grupperingsId = (java.lang.String)value$; break;
    case 5: tekst = (java.lang.String)value$; break;
    case 6: link = (java.lang.String)value$; break;
    case 7: sikkerhetsnivaa = (java.lang.Integer)value$; break;
    default: throw new org.apache.avro.AvroRuntimeException("Bad index");
    }
  }

  /**
   * Gets the value of the 'produsent' field.
   * @return The value of the 'produsent' field.
   */
  public java.lang.String getProdusent() {
    return produsent;
  }



  /**
   * Gets the value of the 'tidspunkt' field.
   * @return The value of the 'tidspunkt' field.
   */
  public long getTidspunkt() {
    return tidspunkt;
  }



  /**
   * Gets the value of the 'fodselsnummer' field.
   * @return The value of the 'fodselsnummer' field.
   */
  public java.lang.String getFodselsnummer() {
    return fodselsnummer;
  }



  /**
   * Gets the value of the 'eventId' field.
   * @return The value of the 'eventId' field.
   */
  public java.lang.String getEventId() {
    return eventId;
  }



  /**
   * Gets the value of the 'grupperingsId' field.
   * @return The value of the 'grupperingsId' field.
   */
  public java.lang.String getGrupperingsId() {
    return grupperingsId;
  }



  /**
   * Gets the value of the 'tekst' field.
   * @return The value of the 'tekst' field.
   */
  public java.lang.String getTekst() {
    return tekst;
  }



  /**
   * Gets the value of the 'link' field.
   * @return The value of the 'link' field.
   */
  public java.lang.String getLink() {
    return link;
  }



  /**
   * Gets the value of the 'sikkerhetsnivaa' field.
   * @return The value of the 'sikkerhetsnivaa' field.
   */
  public int getSikkerhetsnivaa() {
    return sikkerhetsnivaa;
  }



  /**
   * Creates a new Innboks RecordBuilder.
   * @return A new Innboks RecordBuilder
   */
  public static no.nav.brukernotifikasjon.schemas.Innboks.Builder newBuilder() {
    return new no.nav.brukernotifikasjon.schemas.Innboks.Builder();
  }

  /**
   * Creates a new Innboks RecordBuilder by copying an existing Builder.
   * @param other The existing builder to copy.
   * @return A new Innboks RecordBuilder
   */
  public static no.nav.brukernotifikasjon.schemas.Innboks.Builder newBuilder(no.nav.brukernotifikasjon.schemas.Innboks.Builder other) {
    if (other == null) {
      return new no.nav.brukernotifikasjon.schemas.Innboks.Builder();
    } else {
      return new no.nav.brukernotifikasjon.schemas.Innboks.Builder(other);
    }
  }

  /**
   * Creates a new Innboks RecordBuilder by copying an existing Innboks instance.
   * @param other The existing instance to copy.
   * @return A new Innboks RecordBuilder
   */
  public static no.nav.brukernotifikasjon.schemas.Innboks.Builder newBuilder(no.nav.brukernotifikasjon.schemas.Innboks other) {
    if (other == null) {
      return new no.nav.brukernotifikasjon.schemas.Innboks.Builder();
    } else {
      return new no.nav.brukernotifikasjon.schemas.Innboks.Builder(other);
    }
  }

  /**
   * RecordBuilder for Innboks instances.
   */
  public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
    implements org.apache.avro.data.RecordBuilder {

    private java.lang.String produsent;
    private long tidspunkt;
    private java.lang.String fodselsnummer;
    private java.lang.String eventId;
    private java.lang.String grupperingsId;
    private java.lang.String tekst;
    private java.lang.String link;
    private int sikkerhetsnivaa;

    /** Creates a new Builder */
    private Builder() {
      super(SCHEMA$);
    }

    /**
     * Creates a Builder by copying an existing Builder.
     * @param other The existing Builder to copy.
     */
    private Builder(no.nav.brukernotifikasjon.schemas.Innboks.Builder other) {
      super(other);
      if (isValidValue(fields()[0], other.produsent)) {
        this.produsent = data().deepCopy(fields()[0].schema(), other.produsent);
        fieldSetFlags()[0] = other.fieldSetFlags()[0];
      }
      if (isValidValue(fields()[1], other.tidspunkt)) {
        this.tidspunkt = data().deepCopy(fields()[1].schema(), other.tidspunkt);
        fieldSetFlags()[1] = other.fieldSetFlags()[1];
      }
      if (isValidValue(fields()[2], other.fodselsnummer)) {
        this.fodselsnummer = data().deepCopy(fields()[2].schema(), other.fodselsnummer);
        fieldSetFlags()[2] = other.fieldSetFlags()[2];
      }
      if (isValidValue(fields()[3], other.eventId)) {
        this.eventId = data().deepCopy(fields()[3].schema(), other.eventId);
        fieldSetFlags()[3] = other.fieldSetFlags()[3];
      }
      if (isValidValue(fields()[4], other.grupperingsId)) {
        this.grupperingsId = data().deepCopy(fields()[4].schema(), other.grupperingsId);
        fieldSetFlags()[4] = other.fieldSetFlags()[4];
      }
      if (isValidValue(fields()[5], other.tekst)) {
        this.tekst = data().deepCopy(fields()[5].schema(), other.tekst);
        fieldSetFlags()[5] = other.fieldSetFlags()[5];
      }
      if (isValidValue(fields()[6], other.link)) {
        this.link = data().deepCopy(fields()[6].schema(), other.link);
        fieldSetFlags()[6] = other.fieldSetFlags()[6];
      }
      if (isValidValue(fields()[7], other.sikkerhetsnivaa)) {
        this.sikkerhetsnivaa = data().deepCopy(fields()[7].schema(), other.sikkerhetsnivaa);
        fieldSetFlags()[7] = other.fieldSetFlags()[7];
      }
    }

    /**
     * Creates a Builder by copying an existing Innboks instance
     * @param other The existing instance to copy.
     */
    private Builder(no.nav.brukernotifikasjon.schemas.Innboks other) {
      super(SCHEMA$);
      if (isValidValue(fields()[0], other.produsent)) {
        this.produsent = data().deepCopy(fields()[0].schema(), other.produsent);
        fieldSetFlags()[0] = true;
      }
      if (isValidValue(fields()[1], other.tidspunkt)) {
        this.tidspunkt = data().deepCopy(fields()[1].schema(), other.tidspunkt);
        fieldSetFlags()[1] = true;
      }
      if (isValidValue(fields()[2], other.fodselsnummer)) {
        this.fodselsnummer = data().deepCopy(fields()[2].schema(), other.fodselsnummer);
        fieldSetFlags()[2] = true;
      }
      if (isValidValue(fields()[3], other.eventId)) {
        this.eventId = data().deepCopy(fields()[3].schema(), other.eventId);
        fieldSetFlags()[3] = true;
      }
      if (isValidValue(fields()[4], other.grupperingsId)) {
        this.grupperingsId = data().deepCopy(fields()[4].schema(), other.grupperingsId);
        fieldSetFlags()[4] = true;
      }
      if (isValidValue(fields()[5], other.tekst)) {
        this.tekst = data().deepCopy(fields()[5].schema(), other.tekst);
        fieldSetFlags()[5] = true;
      }
      if (isValidValue(fields()[6], other.link)) {
        this.link = data().deepCopy(fields()[6].schema(), other.link);
        fieldSetFlags()[6] = true;
      }
      if (isValidValue(fields()[7], other.sikkerhetsnivaa)) {
        this.sikkerhetsnivaa = data().deepCopy(fields()[7].schema(), other.sikkerhetsnivaa);
        fieldSetFlags()[7] = true;
      }
    }

    /**
      * Gets the value of the 'produsent' field.
      * @return The value.
      */
    public java.lang.String getProdusent() {
      return produsent;
    }


    /**
      * Sets the value of the 'produsent' field.
      * @param value The value of 'produsent'.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder setProdusent(java.lang.String value) {
      validate(fields()[0], value);
      this.produsent = value;
      fieldSetFlags()[0] = true;
      return this;
    }

    /**
      * Checks whether the 'produsent' field has been set.
      * @return True if the 'produsent' field has been set, false otherwise.
      */
    public boolean hasProdusent() {
      return fieldSetFlags()[0];
    }


    /**
      * Clears the value of the 'produsent' field.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder clearProdusent() {
      produsent = null;
      fieldSetFlags()[0] = false;
      return this;
    }

    /**
      * Gets the value of the 'tidspunkt' field.
      * @return The value.
      */
    public long getTidspunkt() {
      return tidspunkt;
    }


    /**
      * Sets the value of the 'tidspunkt' field.
      * @param value The value of 'tidspunkt'.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder setTidspunkt(long value) {
      validate(fields()[1], value);
      this.tidspunkt = value;
      fieldSetFlags()[1] = true;
      return this;
    }

    /**
      * Checks whether the 'tidspunkt' field has been set.
      * @return True if the 'tidspunkt' field has been set, false otherwise.
      */
    public boolean hasTidspunkt() {
      return fieldSetFlags()[1];
    }


    /**
      * Clears the value of the 'tidspunkt' field.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder clearTidspunkt() {
      fieldSetFlags()[1] = false;
      return this;
    }

    /**
      * Gets the value of the 'fodselsnummer' field.
      * @return The value.
      */
    public java.lang.String getFodselsnummer() {
      return fodselsnummer;
    }


    /**
      * Sets the value of the 'fodselsnummer' field.
      * @param value The value of 'fodselsnummer'.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder setFodselsnummer(java.lang.String value) {
      validate(fields()[2], value);
      this.fodselsnummer = value;
      fieldSetFlags()[2] = true;
      return this;
    }

    /**
      * Checks whether the 'fodselsnummer' field has been set.
      * @return True if the 'fodselsnummer' field has been set, false otherwise.
      */
    public boolean hasFodselsnummer() {
      return fieldSetFlags()[2];
    }


    /**
      * Clears the value of the 'fodselsnummer' field.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder clearFodselsnummer() {
      fodselsnummer = null;
      fieldSetFlags()[2] = false;
      return this;
    }

    /**
      * Gets the value of the 'eventId' field.
      * @return The value.
      */
    public java.lang.String getEventId() {
      return eventId;
    }


    /**
      * Sets the value of the 'eventId' field.
      * @param value The value of 'eventId'.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder setEventId(java.lang.String value) {
      validate(fields()[3], value);
      this.eventId = value;
      fieldSetFlags()[3] = true;
      return this;
    }

    /**
      * Checks whether the 'eventId' field has been set.
      * @return True if the 'eventId' field has been set, false otherwise.
      */
    public boolean hasEventId() {
      return fieldSetFlags()[3];
    }


    /**
      * Clears the value of the 'eventId' field.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder clearEventId() {
      eventId = null;
      fieldSetFlags()[3] = false;
      return this;
    }

    /**
      * Gets the value of the 'grupperingsId' field.
      * @return The value.
      */
    public java.lang.String getGrupperingsId() {
      return grupperingsId;
    }


    /**
      * Sets the value of the 'grupperingsId' field.
      * @param value The value of 'grupperingsId'.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder setGrupperingsId(java.lang.String value) {
      validate(fields()[4], value);
      this.grupperingsId = value;
      fieldSetFlags()[4] = true;
      return this;
    }

    /**
      * Checks whether the 'grupperingsId' field has been set.
      * @return True if the 'grupperingsId' field has been set, false otherwise.
      */
    public boolean hasGrupperingsId() {
      return fieldSetFlags()[4];
    }


    /**
      * Clears the value of the 'grupperingsId' field.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder clearGrupperingsId() {
      grupperingsId = null;
      fieldSetFlags()[4] = false;
      return this;
    }

    /**
      * Gets the value of the 'tekst' field.
      * @return The value.
      */
    public java.lang.String getTekst() {
      return tekst;
    }


    /**
      * Sets the value of the 'tekst' field.
      * @param value The value of 'tekst'.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder setTekst(java.lang.String value) {
      validate(fields()[5], value);
      this.tekst = value;
      fieldSetFlags()[5] = true;
      return this;
    }

    /**
      * Checks whether the 'tekst' field has been set.
      * @return True if the 'tekst' field has been set, false otherwise.
      */
    public boolean hasTekst() {
      return fieldSetFlags()[5];
    }


    /**
      * Clears the value of the 'tekst' field.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder clearTekst() {
      tekst = null;
      fieldSetFlags()[5] = false;
      return this;
    }

    /**
      * Gets the value of the 'link' field.
      * @return The value.
      */
    public java.lang.String getLink() {
      return link;
    }


    /**
      * Sets the value of the 'link' field.
      * @param value The value of 'link'.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder setLink(java.lang.String value) {
      validate(fields()[6], value);
      this.link = value;
      fieldSetFlags()[6] = true;
      return this;
    }

    /**
      * Checks whether the 'link' field has been set.
      * @return True if the 'link' field has been set, false otherwise.
      */
    public boolean hasLink() {
      return fieldSetFlags()[6];
    }


    /**
      * Clears the value of the 'link' field.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder clearLink() {
      link = null;
      fieldSetFlags()[6] = false;
      return this;
    }

    /**
      * Gets the value of the 'sikkerhetsnivaa' field.
      * @return The value.
      */
    public int getSikkerhetsnivaa() {
      return sikkerhetsnivaa;
    }


    /**
      * Sets the value of the 'sikkerhetsnivaa' field.
      * @param value The value of 'sikkerhetsnivaa'.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder setSikkerhetsnivaa(int value) {
      validate(fields()[7], value);
      this.sikkerhetsnivaa = value;
      fieldSetFlags()[7] = true;
      return this;
    }

    /**
      * Checks whether the 'sikkerhetsnivaa' field has been set.
      * @return True if the 'sikkerhetsnivaa' field has been set, false otherwise.
      */
    public boolean hasSikkerhetsnivaa() {
      return fieldSetFlags()[7];
    }


    /**
      * Clears the value of the 'sikkerhetsnivaa' field.
      * @return This builder.
      */
    public no.nav.brukernotifikasjon.schemas.Innboks.Builder clearSikkerhetsnivaa() {
      fieldSetFlags()[7] = false;
      return this;
    }

    @Override
    @SuppressWarnings("unchecked")
    public Innboks build() {
      try {
        Innboks record = new Innboks();
        record.produsent = fieldSetFlags()[0] ? this.produsent : (java.lang.String) defaultValue(fields()[0]);
        record.tidspunkt = fieldSetFlags()[1] ? this.tidspunkt : (java.lang.Long) defaultValue(fields()[1]);
        record.fodselsnummer = fieldSetFlags()[2] ? this.fodselsnummer : (java.lang.String) defaultValue(fields()[2]);
        record.eventId = fieldSetFlags()[3] ? this.eventId : (java.lang.String) defaultValue(fields()[3]);
        record.grupperingsId = fieldSetFlags()[4] ? this.grupperingsId : (java.lang.String) defaultValue(fields()[4]);
        record.tekst = fieldSetFlags()[5] ? this.tekst : (java.lang.String) defaultValue(fields()[5]);
        record.link = fieldSetFlags()[6] ? this.link : (java.lang.String) defaultValue(fields()[6]);
        record.sikkerhetsnivaa = fieldSetFlags()[7] ? this.sikkerhetsnivaa : (java.lang.Integer) defaultValue(fields()[7]);
        return record;
      } catch (org.apache.avro.AvroMissingFieldException e) {
        throw e;
      } catch (java.lang.Exception e) {
        throw new org.apache.avro.AvroRuntimeException(e);
      }
    }
  }

  @SuppressWarnings("unchecked")
  private static final org.apache.avro.io.DatumWriter
    WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);

  @Override public void writeExternal(java.io.ObjectOutput out)
    throws java.io.IOException {
    WRITER$.write(this, SpecificData.getEncoder(out));
  }

  @SuppressWarnings("unchecked")
  private static final org.apache.avro.io.DatumReader
    READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);

  @Override public void readExternal(java.io.ObjectInput in)
    throws java.io.IOException {
    READER$.read(this, SpecificData.getDecoder(in));
  }

  @Override protected boolean hasCustomCoders() { return true; }

  @Override public void customEncode(org.apache.avro.io.Encoder out)
    throws java.io.IOException
  {
    out.writeString(this.produsent);

    out.writeLong(this.tidspunkt);

    out.writeString(this.fodselsnummer);

    out.writeString(this.eventId);

    out.writeString(this.grupperingsId);

    out.writeString(this.tekst);

    out.writeString(this.link);

    out.writeInt(this.sikkerhetsnivaa);

  }

  @Override public void customDecode(org.apache.avro.io.ResolvingDecoder in)
    throws java.io.IOException
  {
    org.apache.avro.Schema.Field[] fieldOrder = in.readFieldOrderIfDiff();
    if (fieldOrder == null) {
      this.produsent = in.readString();

      this.tidspunkt = in.readLong();

      this.fodselsnummer = in.readString();

      this.eventId = in.readString();

      this.grupperingsId = in.readString();

      this.tekst = in.readString();

      this.link = in.readString();

      this.sikkerhetsnivaa = in.readInt();

    } else {
      for (int i = 0; i < 8; i++) {
        switch (fieldOrder[i].pos()) {
        case 0:
          this.produsent = in.readString();
          break;

        case 1:
          this.tidspunkt = in.readLong();
          break;

        case 2:
          this.fodselsnummer = in.readString();
          break;

        case 3:
          this.eventId = in.readString();
          break;

        case 4:
          this.grupperingsId = in.readString();
          break;

        case 5:
          this.tekst = in.readString();
          break;

        case 6:
          this.link = in.readString();
          break;

        case 7:
          this.sikkerhetsnivaa = in.readInt();
          break;

        default:
          throw new java.io.IOException("Corrupt ResolvingDecoder.");
        }
      }
    }
  }
}














© 2015 - 2024 Weber Informatics LLC | Privacy Policy