Examples of NewRecordDataObject


Examples of de.fu_berlin.inf.dpp.whiteboard.sxe.records.serializable.NewRecordDataObject

   * factory method
   */
  protected RecordDataObject getRdo(RecordType t) {
    switch (t) {
    case NEW:
      return new NewRecordDataObject();
    case SET:
      return new SetRecordDataObject();
    }
    log.warn("Unknown record type: " + t);

View Full Code Here

Examples of de.fu_berlin.inf.dpp.whiteboard.sxe.records.serializable.NewRecordDataObject

    setRecords.clear();
  }

  @Override
  public RecordDataObject getRecordDataObject() {
    RecordDataObject rdo = new NewRecordDataObject();

    rdo.putValue(RecordEntry.TYPE, getNodeType().toString());
    rdo.putValue(RecordEntry.RID, getRid());
    rdo.putValue(RecordEntry.VERSION, initialSet.getVersion());
    if (getParent() != null)
      rdo.putValue(RecordEntry.PARENT, getParent().getRid());
    rdo.putValue(RecordEntry.VISIBLE, isVisible());
    rdo.putValue(RecordEntry.PRIMARY_WEIGHT, initialSet.getPrimaryWeight());
    rdo.putValue(RecordEntry.NAME, getName());
    rdo.putValue(RecordEntry.NS, getNs());
    rdo.putValue(RecordEntry.CHDATA, initialSet.getChdata());

    return rdo;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.