~ubuntu-branches/ubuntu/maverick/electric/maverick

« back to all changes in this revision

Viewing changes to com/sun/electric/database/id/ExportId.java

  • Committer: Bazaar Package Importer
  • Author(s): Onkar Shinde
  • Date: 2010-01-09 16:26:04 UTC
  • mfrom: (1.1.4 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100109162604-1ypvmy8ijmlc6oq7
Tags: 8.10-1
* New upstream version.
* debian/control
  - Add libjava3d-java and quilt build dependencies.
  - Update standards version to 3.8.3.
  - Add libjava3d-java as recommends to binary package.
* debian/rules
  - Use quilt patch system instead of simple patchsys.
  - Add java3d related jar files to DEB_JARS.
* debian/patches/*
  - Update as per current upstream source. Convert to quilt.
* debian/ant.properties
  - Do not disable 3D plugin anymore.
  - Use new property to disable compilation of OS X related classes.
* debian/wrappers/electric
  - Add java3d related jar files to runtime classpath.
* debian/README.source
  - Change text to the appropriate one for quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 * This class is thread-safe except inCurrentThread method .
38
38
 */
39
39
public final class ExportId extends PortProtoId {
 
40
 
40
41
    /**
41
42
     * ExportId constructor.
42
43
     */
45
46
//        if (externalId.length() == 0)
46
47
//            throw new IllegalArgumentException("ExportId");
47
48
    }
48
 
    
 
49
 
49
50
    /**
50
51
     * Method to return the parent NodeProtoId of this ExportId.
51
52
     * @return the parent NodeProtoId of this ExportId.
52
53
     */
53
54
    @Override
54
 
    public CellId getParentId() { return (CellId)parentId; }
55
 
    
56
 
        /**
57
 
         * Method to return the name of this PortProtoId in a specified Snapshot.
 
55
    public CellId getParentId() {
 
56
        return (CellId) parentId;
 
57
    }
 
58
 
 
59
    /**
 
60
     * Method to return the name of this PortProtoId in a specified Snapshot.
58
61
     * @param snapshot snapshot for name search.
59
 
         * @return the name of this PortProtoId.
60
 
         */
 
62
     * @return the name of this PortProtoId.
 
63
     */
61
64
    @Override
62
 
        public String getName(Snapshot snapshot) { return inSnapshot(snapshot).name.toString(); }
 
65
    public String getName(Snapshot snapshot) {
 
66
        return inSnapshot(snapshot).name.toString();
 
67
    }
63
68
 
64
69
    /**
65
70
     * Method to return the ImmutableExport representing ExportId in the specified Snapshot.
70
75
        CellRevision cellRevision = snapshot.getCellRevision(getParentId());
71
76
        return cellRevision != null ? cellRevision.getExport(this) : null;
72
77
    }
73
 
    
 
78
 
74
79
    /**
75
80
     * Method to return the Export representing ExportId in the specified EDatabase.
76
81
     * @param database EDatabase where to get from.
82
87
        Cell cell = database.getCell(getParentId());
83
88
        return cell != null ? cell.getExportChron(chronIndex) : null;
84
89
    }
85
 
    
 
90
 
86
91
    /**
87
92
     * Check invariants of this ExportId.
88
93
     * @throws AssertionError if this ExportId is not valid.
89
94
     */
90
95
    @Override
91
 
     void check() {
92
 
         super.check();
 
96
    void check() {
 
97
        super.check();
93
98
//         assert externalId.length() > 0;
94
 
     }
 
99
    }
95
100
}