|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tudresden.inf.lat.jcel.coreontology.datatype.IntegerEntityManagerImpl
public class IntegerEntityManagerImpl
An object of this class generates new identification numbers for object properties and classes.
Field Summary | |
---|---|
static String |
anonymousEntity
|
static String |
auxiliaryEntity
|
Fields inherited from interface de.tudresden.inf.lat.jcel.coreontology.datatype.IntegerEntityManager |
---|
bottomClassId, bottomDataPropertyId, bottomObjectPropertyId, firstUsableIdentifier, topClassId, topDataPropertyId, topObjectPropertyId |
Constructor Summary | |
---|---|
IntegerEntityManagerImpl()
Constructs a new identifier generator. |
Method Summary | |
---|---|
Integer |
createAnonymousEntity(IntegerEntityType type,
boolean auxiliary)
Creates a new entity of a certain type. |
Integer |
createNamedEntity(IntegerEntityType type,
String name,
boolean auxiliary)
Creates a new entity of a certain type. |
Integer |
createOrGetClassIdForIndividual(Integer individual)
Returns the class identifier corresponding to the given individual. |
Integer |
createOrGetInverseObjectPropertyOf(Integer propertyId)
Returns the inverse object property of the given object property. |
boolean |
equals(Object o)
|
Set<Integer> |
getAuxiliaryInverseObjectProperties()
Returns the auxiliary inverse object properties. |
Integer |
getAuxiliaryNominal(Integer individual)
This method gives the auxiliary nominal related to a specific individual. |
Set<Integer> |
getAuxiliaryNominals()
Returns the set of auxiliary nominals. |
Set<Integer> |
getEntities(IntegerEntityType type,
boolean auxiliary)
Returns the set of identifiers of auxiliary entities of a certain type. |
Integer |
getIndividual(Integer auxNominal)
This method gives the individual related to a specific auxiliary nominal. |
Set<Integer> |
getIndividuals()
Returns the set of individuals. |
String |
getName(Integer identifier)
Returns the name defined for a certain entity. |
IntegerEntityType |
getType(Integer identifier)
Returns the entity type for the given identifier |
int |
hashCode()
|
boolean |
isAuxiliary(Integer identifier)
Tells whether the given identifier corresponds to an auxiliary entity. |
boolean |
proposeInverseObjectPropertyOf(Integer firstProperty,
Integer secondProperty)
Proposes the association of an object property to another object property as one the inverse object property of the other one. |
int |
size()
Returns the number of created entities, either auxiliary or non-auxiliary. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String anonymousEntity
public static final String auxiliaryEntity
Constructor Detail |
---|
public IntegerEntityManagerImpl()
Method Detail |
---|
public Integer createAnonymousEntity(IntegerEntityType type, boolean auxiliary)
IntegerEntityManager
createAnonymousEntity
in interface IntegerEntityManager
type
- type of the entityauxiliary
- true
if and only if the created entity is an
auxiliary entity
public Integer createNamedEntity(IntegerEntityType type, String name, boolean auxiliary)
IntegerEntityManager
createNamedEntity
in interface IntegerEntityManager
type
- type of the entityname
- name for this entityauxiliary
- true
if and only if the created entity is an
auxiliary entity
public Integer createOrGetClassIdForIndividual(Integer individual)
IntegerEntityManager
createOrGetClassIdForIndividual
in interface IntegerEntityManager
individual
- individual to get the class
public Integer createOrGetInverseObjectPropertyOf(Integer propertyId) throws IndexOutOfBoundsException
IntegerEntityManager
createOrGetInverseObjectPropertyOf
in interface IntegerEntityManager
propertyId
- property identifier to create an inverse object property
IndexOutOfBoundsException
- if the property identifier is greater than the last auxiliary
property createdpublic boolean equals(Object o)
equals
in class Object
public Set<Integer> getAuxiliaryInverseObjectProperties()
IntegerEntityManager
getAuxiliaryInverseObjectProperties
in interface IntegerEntityManager
public Integer getAuxiliaryNominal(Integer individual)
IntegerEntityManager
getAuxiliaryNominal
in interface IntegerEntityManager
individual
- the individual
null
if the individual does
not have any related auxiliary nominal.public Set<Integer> getAuxiliaryNominals()
IntegerEntityManager
getAuxiliaryNominals
in interface IntegerEntityManager
public Set<Integer> getEntities(IntegerEntityType type, boolean auxiliary)
IntegerEntityManager
getEntities
in interface IntegerEntityManager
type
- type of the entityauxiliary
- true
for auxiliary entities, false
for non-auxiliary entities
public Integer getIndividual(Integer auxNominal)
IntegerEntityManager
getIndividual
in interface IntegerEntityManager
auxNominal
- the auxiliary nominal
null
if the auxiliary
nominal does not have any related individual.public Set<Integer> getIndividuals()
IntegerEntityManager
getIndividuals
in interface IntegerEntityManager
public String getName(Integer identifier)
IntegerEntityManager
getName
in interface IntegerEntityManager
identifier
- entity to get the name
public IntegerEntityType getType(Integer identifier)
IntegerEntityManager
getType
in interface IntegerEntityManager
identifier
- entity identifier
public int hashCode()
hashCode
in class Object
public boolean isAuxiliary(Integer identifier)
IntegerEntityManager
isAuxiliary
in interface IntegerEntityManager
true
if and only if the given identifier corresponds
to an auxiliary entitypublic boolean proposeInverseObjectPropertyOf(Integer firstProperty, Integer secondProperty) throws IndexOutOfBoundsException
IntegerEntityManager
proposeInverseObjectPropertyOf
in interface IntegerEntityManager
firstProperty
- an object propertysecondProperty
- an object property
true
if and only if the proposal was accepted
IndexOutOfBoundsException
public int size()
IntegerEntityManager
size
in interface IntegerEntityManager
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |