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

com.googlecode.sarasvati.load.GraphValidatorAdapter Maven / Gradle / Ivy

The newest version!
/*
    This file is part of Sarasvati.

    Sarasvati is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as
    published by the Free Software Foundation, either version 3 of the
    License, or (at your option) any later version.

    Sarasvati is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with Sarasvati.  If not, see .

    Copyright 2008-2009 Paul Lorenz
                        Vincent Kirsch
*/
package com.googlecode.sarasvati.load;

import com.googlecode.sarasvati.Arc;
import com.googlecode.sarasvati.Graph;
import com.googlecode.sarasvati.Node;
import com.googlecode.sarasvati.load.definition.ArcDefinition;
import com.googlecode.sarasvati.load.definition.ExternalArcDefinition;
import com.googlecode.sarasvati.load.definition.ExternalDefinition;
import com.googlecode.sarasvati.load.definition.NodeDefinition;
import com.googlecode.sarasvati.load.definition.ProcessDefinition;

/**
 * Provides a base for creating {@link GraphValidator} implementations in
 * cases where not all methods will be overridden. Provides default, do-nothing
 * implementations of all methods.
 *
 * @author Paul Lorenz
 */
public class GraphValidatorAdapter implements GraphValidator
{
  /**
   * Does nothing. Override in a subclass to do user constraint checking
   */
  @Override
  public void validateArc (final Arc arc) throws SarasvatiLoadException
  {
    // Does nothing
  }

  /**
   * Does nothing. Override in a subclass to do user constraint checking
   */
  @Override
  public void validateGraph (final Graph graph) throws SarasvatiLoadException
  {
    // Does nothing
  }

  /**
   * Does nothing. Override in a subclass to do user constraint checking
   */
  @Override
  public void validateNode (final Node node) throws SarasvatiLoadException
  {
    // Does nothing
  }

  /**
   * Does nothing. Override in a subclass to do user constraint checking
   */
  @Override
  public void validateArcDefinition (final ArcDefinition arcDefinition) throws SarasvatiLoadException
  {
    // Does nothing
  }

  /**
   * Does nothing. Override in a subclass to do user constraint checking
   */
  @Override
  public void validateExternalDefinition (final ExternalDefinition externalDefinition)
      throws SarasvatiLoadException
  {
    // Does nothing
  }

  /**
   * Does nothing. Override in a subclass to do user constraint checking
   */
  @Override
  public void validateExternalArcDefinition (final ExternalArcDefinition xmlExternalArc)
      throws SarasvatiLoadException
  {
    // Does nothing
  }

  /**
   * Does nothing. Override in a subclass to do user constraint checking
   */
  @Override
  public void validateNodeDefinition (final NodeDefinition nodeDefinition) throws SarasvatiLoadException
  {
    // Does nothing
  }

  /**
   * Does nothing. Override in a subclass to do user constraint checking
   */
  @Override
  public void validateProcessDefinition (final ProcessDefinition processDefinition)
    throws SarasvatiLoadException
  {
    // Does nothing
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy