1. /*
  2. * @(#)Identifiable.java 1.10 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.spi.ior;
  8. /** This interface represents an entity that can be written to an
  9. * OutputStream and has an identity that is represented by an integer.
  10. * This identity is essentially the type of the entity, and is used in
  11. * order to know how to read the entity back from an InputStream.
  12. * @author Ken Cavanaugh
  13. */
  14. public interface Identifiable extends Writeable
  15. {
  16. /** Return the (type) identity of this entity.
  17. * @return int
  18. */
  19. public int getId();
  20. }