Ejemplo n.º 1
0
  public void fromGlue(GlueDecoder decoder) throws GlueException {
    Long stamp = (Long) decoder.decode("TimeStamp");
    if (stamp == null) throw new GlueException("The \"TimeStamp\" was missing!");
    if (stamp <= 0L) throw new GlueException("The \"TimeStamp\" was illegal!");
    pTimeStamp = stamp;

    NodeEventOp nodeOp = (NodeEventOp) decoder.decode("NodeOp");
    if (nodeOp == null) throw new GlueException("The \"NodeOp\" was missing!");
    pNodeOp = nodeOp;

    String name = (String) decoder.decode("Name");
    if (name == null) throw new GlueException("The \"Name\" was missing!");
    pName = name;

    String author = (String) decoder.decode("Author");
    if (author == null) throw new GlueException("The \"Author\" was missing!");
    pAuthor = author;
  }
Ejemplo n.º 2
0
  public void fromGlue(GlueDecoder decoder) throws GlueException {
    super.fromGlue(decoder);

    Boolean tf = (Boolean) decoder.decode("IsListLayout");
    pIsListLayout = (tf != null) && tf;
  }