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

de.digitalcollections.model.identifiable.Node Maven / Gradle / Ivy

package de.digitalcollections.model.identifiable;

import java.util.ArrayList;
import java.util.List;

/**
 * Node is used to structure cultural content hierarchically.
 *
 * @param  a node
 */
public class Node extends Identifiable implements INode {

  private List children;

  private N parent;

  public Node() {
    super();
    children = new ArrayList<>();
  }

  @Override
  public List getChildren() {
    return children;
  }

  @Override
  public N getParent() {
    return parent;
  }

  @Override
  public void setChildren(List children) {
    this.children = children;
  }

  @Override
  public void setParent(N parent) {
    this.parent = parent;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy