source: trunk/java-client/org/nzdl/gsdl/service/NzdlCollectionInfo.java@ 2077

Last change on this file since 2077 was 2077, checked in by say1, 23 years ago

started work on the Java server. still many hacks.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1
2package org.nzdl.service;
3
4/** gsdl corba stuff */
5import org.nzdl.corba.gsdlInterface.*;
6import org.nzdl.util.*;
7
8public class NzdlCollectionInfo extends Object {
9
10 /** */
11 private corbaColInfoResponse m_Info = null;
12
13 public NzdlCollectionInfo( corbaColInfoResponse _info ) {
14 m_Info = _info;
15 }
16
17 public corbaColInfoResponse getInfo(){
18 return m_Info;
19 }
20
21 /** */
22 public String getName() {
23 return NzdlCorbaFactory.toString( m_Info.shoftInfo.name ) ;
24 }
25
26 public boolean isPublic() {
27 return m_Info.isPublic;
28 }
29
30 public boolean isBeta() {
31 return m_Info.isBeta;
32 }
33
34 public int getBuildDate() {
35 return m_Info.buildDate;
36 }
37
38 public int getNumOfDocs() {
39 return m_Info.numDocs;
40 }
41
42 public int getNumOfWords() {
43 return m_Info.numWords;
44 }
45
46 public int getNumOfBytes() {
47 return m_Info.numBytes;
48 }
49
50 /** */
51 public void print() {
52 /* [email protected] */
53 //System.out.println("Collection Information--------------");
54 //System.out.println("Collection Name = " + this.getName());
55 //System.out.println("Collection Name = " + m_info.getName());
56
57 }
58
59}
Note: See TracBrowser for help on using the repository browser.