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

de.oc.dbdoc.ant.Diagrams Maven / Gradle / Ivy

There is a newer version: 8.6.4
Show newest version
package de.oc.dbdoc.ant;

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

public class Diagrams
{
  private List _stylegroups = new ArrayList();

  public Stylegroup createStylegroup()
  {
    Stylegroup lStylegroup = new Stylegroup();

    _stylegroups.add( lStylegroup );

    return lStylegroup;
  }

  private Stylegroup _getStylegroup( String pStylegroupName )
  {
    Stylegroup lStylegroup = null;

    for( Stylegroup lTestStylegroup : _stylegroups )
    {
      if( lTestStylegroup.getName().equals( pStylegroupName ) )
      {
        lStylegroup = lTestStylegroup;
      }
    }

    if( lStylegroup == null )
    {
      lStylegroup = new Stylegroup();
    }

    return lStylegroup;
  }

  String getStyleForStylegroup( String pStylegroupName )
  {
    return _getStylegroup( pStylegroupName ).getStyleForStylegroup();
  }

  public String getDotExecutableForStylegroup( String pStylegroupName )
  {
    return _getStylegroup( pStylegroupName ).getDotExecutable();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy