1. /*
  2. * @(#)RepositoryIdUtility.java 1.6 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.impl.orbutil;
  8. import org.omg.CORBA.ORB;
  9. import com.sun.corba.se.impl.util.RepositoryId;
  10. /**
  11. * Utility methods for working with repository IDs.
  12. */
  13. public interface RepositoryIdUtility
  14. {
  15. boolean isChunkedEncoding(int valueTag);
  16. boolean isCodeBasePresent(int valueTag);
  17. // These are currently the same in both RepositoryId and
  18. // RepositoryId_1_3, but provide the constants again here
  19. // to eliminate awkardness when using this interface.
  20. int NO_TYPE_INFO = RepositoryId.kNoTypeInfo;
  21. int SINGLE_REP_TYPE_INFO = RepositoryId.kSingleRepTypeInfo;
  22. int PARTIAL_LIST_TYPE_INFO = RepositoryId.kPartialListTypeInfo;
  23. // Determine how many (if any) repository IDs follow the value
  24. // tag.
  25. int getTypeInfo(int valueTag);
  26. // Accessors for precomputed value tags
  27. int getStandardRMIChunkedNoRepStrId();
  28. int getCodeBaseRMIChunkedNoRepStrId();
  29. int getStandardRMIChunkedId();
  30. int getCodeBaseRMIChunkedId();
  31. int getStandardRMIUnchunkedId();
  32. int getCodeBaseRMIUnchunkedId();
  33. }