~ubuntu-branches/debian/stretch/openbabel/stretch

« back to all changes in this revision

Viewing changes to scripts/java/DataOrigin.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-07-22 23:54:58 UTC
  • mfrom: (3.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080722235458-3o606czluviz4akx
Tags: 2.2.0-2
* Upload to unstable.
* debian/control: Updated descriptions.
* debian/patches/gauss_cube_format.patch: New patch, makes the 
  gaussian cube format available again.
* debian/rules (DEB_DH_MAKESHLIBS_ARGS_libopenbabel3): Removed.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Likewise.
* debian/libopenbabel3.install: Adjust formats directory to single 
  version hierarchy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ----------------------------------------------------------------------------
 
2
 * This file was automatically generated by SWIG (http://www.swig.org).
 
3
 * Version 1.3.36
 
4
 *
 
5
 * Do not make changes to this file unless you know what you are doing--modify
 
6
 * the SWIG interface file instead.
 
7
 * ----------------------------------------------------------------------------- */
 
8
 
 
9
 
 
10
public final class DataOrigin {
 
11
  public final static DataOrigin any = new DataOrigin("any");
 
12
  public final static DataOrigin fileformatInput = new DataOrigin("fileformatInput");
 
13
  public final static DataOrigin userInput = new DataOrigin("userInput");
 
14
  public final static DataOrigin perceived = new DataOrigin("perceived");
 
15
  public final static DataOrigin external = new DataOrigin("external");
 
16
 
 
17
  public final int swigValue() {
 
18
    return swigValue;
 
19
  }
 
20
 
 
21
  public String toString() {
 
22
    return swigName;
 
23
  }
 
24
 
 
25
  public static DataOrigin swigToEnum(int swigValue) {
 
26
    if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
 
27
      return swigValues[swigValue];
 
28
    for (int i = 0; i < swigValues.length; i++)
 
29
      if (swigValues[i].swigValue == swigValue)
 
30
        return swigValues[i];
 
31
    throw new IllegalArgumentException("No enum " + DataOrigin.class + " with value " + swigValue);
 
32
  }
 
33
 
 
34
  private DataOrigin(String swigName) {
 
35
    this.swigName = swigName;
 
36
    this.swigValue = swigNext++;
 
37
  }
 
38
 
 
39
  private DataOrigin(String swigName, int swigValue) {
 
40
    this.swigName = swigName;
 
41
    this.swigValue = swigValue;
 
42
    swigNext = swigValue+1;
 
43
  }
 
44
 
 
45
  private DataOrigin(String swigName, DataOrigin swigEnum) {
 
46
    this.swigName = swigName;
 
47
    this.swigValue = swigEnum.swigValue;
 
48
    swigNext = this.swigValue+1;
 
49
  }
 
50
 
 
51
  private static DataOrigin[] swigValues = { any, fileformatInput, userInput, perceived, external };
 
52
  private static int swigNext = 0;
 
53
  private final int swigValue;
 
54
  private final String swigName;
 
55
}
 
56