KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > orbutil > RepositoryIdUtility


1 /*
2  * @(#)RepositoryIdUtility.java 1.8 05/01/04
3  *
4  * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.impl.orbutil;
9
10 import org.omg.CORBA.ORB JavaDoc;
11 import com.sun.corba.se.impl.util.RepositoryId;
12
13 /**
14  * Utility methods for working with repository IDs.
15  */

16 public interface RepositoryIdUtility
17 {
18     boolean isChunkedEncoding(int valueTag);
19     boolean isCodeBasePresent(int valueTag);
20
21     // These are currently the same in both RepositoryId and
22
// RepositoryId_1_3, but provide the constants again here
23
// to eliminate awkardness when using this interface.
24
int NO_TYPE_INFO = RepositoryId.kNoTypeInfo;
25     int SINGLE_REP_TYPE_INFO = RepositoryId.kSingleRepTypeInfo;
26     int PARTIAL_LIST_TYPE_INFO = RepositoryId.kPartialListTypeInfo;
27
28     // Determine how many (if any) repository IDs follow the value
29
// tag.
30
int getTypeInfo(int valueTag);
31
32     // Accessors for precomputed value tags
33
int getStandardRMIChunkedNoRepStrId();
34     int getCodeBaseRMIChunkedNoRepStrId();
35     int getStandardRMIChunkedId();
36     int getCodeBaseRMIChunkedId();
37     int getStandardRMIUnchunkedId();
38     int getCodeBaseRMIUnchunkedId();
39     int getStandardRMIUnchunkedNoRepStrId();
40     int getCodeBaseRMIUnchunkedNoRepStrId();
41 }
42
Popular Tags