Protege 2.1.1

edu.stanford.smi.protege.model
Class FrameID

java.lang.Object
  extended byedu.stanford.smi.protege.model.FrameID
All Implemented Interfaces:
Serializable

public class FrameID
extends Object
implements Serializable

A wrapper around a numeric value that uniquely identifies the frame. The frame name also uniquely identifies it but the frame id is unchanging, unlike the name. This frame id is typically not used much by clients but it is used internally. For file based projects the frame id is only unchanging while the project is loaded. The next time it is loaded the frames will all get other ids. The frame ids are not stored in the files. For the database backend the frame ids are unchanging because they are store in the database. Frame ids below 10000 are reserved for system frames. The particular ids assigned to system frame are available in Model

Author:
Ray Fergerson
See Also:
Serialized Form

Field Summary
static int INITIAL_USER_FRAME_ID
           
static int LOCAL_PROJECT_ID
           
static int NULL_FRAME_ID_VALUE
           
static int SYSTEM_PROJECT_ID
           
 
Method Summary
static FrameID create(int projectPart, int localPart)
           
static FrameID createLocal(int value)
           
static FrameID createSystem(int value)
           
 boolean equals(Object o)
           
 int getLocalPart()
           
 int getProjectPart()
           
 int hashCode()
           
 boolean isSystem()
           
 boolean isUser()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_FRAME_ID_VALUE

public static final int NULL_FRAME_ID_VALUE
See Also:
Constant Field Values

INITIAL_USER_FRAME_ID

public static final int INITIAL_USER_FRAME_ID
See Also:
Constant Field Values

SYSTEM_PROJECT_ID

public static final int SYSTEM_PROJECT_ID
See Also:
Constant Field Values

LOCAL_PROJECT_ID

public static final int LOCAL_PROJECT_ID
See Also:
Constant Field Values
Method Detail

createSystem

public static FrameID createSystem(int value)

createLocal

public static FrameID createLocal(int value)

create

public static FrameID create(int projectPart,
                             int localPart)

isSystem

public boolean isSystem()

getLocalPart

public int getLocalPart()

getProjectPart

public int getProjectPart()

equals

public boolean equals(Object o)

hashCode

public final int hashCode()

isUser

public boolean isUser()

toString

public String toString()

Protege 2.1.1

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.