org.meta2project.model.debug
Class DebugNamedEntity

java.lang.Object
  extended by org.meta2project.model.debug.DebugAnnotatedEntity
      extended by org.meta2project.model.debug.DebugNamedEntity
All Implemented Interfaces:
AnnotatedEntity, NamedEntity
Direct Known Subclasses:
DebugOntClass, DebugOntObject, DebugOProperty, DebugTProperty, DebugType

public class DebugNamedEntity
extends DebugAnnotatedEntity
implements NamedEntity

Author:
Anton Malykh

Field Summary
 java.lang.String fullName
           
 java.lang.String name
           
protected  DebugSession session
           
 
Fields inherited from interface org.meta2project.model.AnnotatedEntity
CASCADE, CASCADE_DELETE_VALUE, COMMENT, MAX_CARD, MIN_CARD, MODEL_URI, TITLE
 
Constructor Summary
protected DebugNamedEntity(DebugSession session, NamedEntity namedEntity)
           
 
Method Summary
 void delete()
          Delete the entity.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getFullName()
          Get the full name of the entity.
 java.lang.String getName()
          Get the short name of the entity
 Ontology getOntology()
          Get the entity's ontology
 int hashCode()
           
 void setName(java.lang.String name)
          Set short name
 
Methods inherited from class org.meta2project.model.debug.DebugAnnotatedEntity
getAnnotation, getAnnotationNames, putAnnotation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.meta2project.model.AnnotatedEntity
getAnnotation, getAnnotationNames, putAnnotation
 

Field Detail

session

protected final DebugSession session

name

public java.lang.String name

fullName

public java.lang.String fullName
Constructor Detail

DebugNamedEntity

protected DebugNamedEntity(DebugSession session,
                           NamedEntity namedEntity)
Method Detail

getOntology

public Ontology getOntology()
Description copied from interface: NamedEntity
Get the entity's ontology

Specified by:
getOntology in interface NamedEntity
Returns:
ontology

getName

public java.lang.String getName()
Description copied from interface: NamedEntity
Get the short name of the entity

Specified by:
getName in interface NamedEntity
Returns:
short name

setName

public void setName(java.lang.String name)
Description copied from interface: NamedEntity
Set short name

Specified by:
setName in interface NamedEntity
Parameters:
name - new short name

getFullName

public java.lang.String getFullName()
Description copied from interface: NamedEntity
Get the full name of the entity.

Specified by:
getFullName in interface NamedEntity
Returns:
имя

delete

public void delete()
Description copied from interface: NamedEntity
Delete the entity.

Specified by:
delete in interface NamedEntity

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object