public class SimpleType extends BaseType
Copyright: Copyright 2003-2014, Knowledge Science Group, University of Calgary. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The Knowledge Science Group makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Company: Knowledge Science Group
BaseType.Role
Modifier and Type | Field and Description |
---|---|
private boolean |
individual |
Modifier | Constructor and Description |
---|---|
protected |
SimpleType(String typeName,
Ontology ontology)
Constructor: makes a new Type with name typeName.
|
protected |
SimpleType(String typeName,
Vector<BaseType> parents,
CASAOntology ontology)
Constructor: makes a new node in the hierarchy with name typeName,
attaching the pointers to and from the nodes in parents.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isIndividual()
return true iff this object is marked as an individual
|
void |
setIndividual() |
compareTo, compareTo, equals, getName, getOntology, getRelativeName, getRoles, getUnqualifiedName, insertRelationTo, insertRelationTo, relatedFrom, relatedFrom, relatedFrom, relatedTo, relatedTo, relatedTo, removeRelationTo, resetMark, toString, toStringNonIsa, toStringParent, toStringWithIsaChildren
protected SimpleType(String typeName, Vector<BaseType> parents, CASAOntology ontology) throws IllegalOperationException
typeName
- the name of the typeparents
- must be a Vector of Stringsontology
- the ontology to which this belongsIllegalOperationException
protected SimpleType(String typeName, Ontology ontology) throws IllegalOperationException
typeName
- the name of the typeontology
- the ontology to which this belongsIllegalOperationException
public void setIndividual()
public boolean isIndividual()
Type