|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.meta2project.model.debug.DebugAnnotatedEntity
org.meta2project.model.debug.DebugOntology
public class DebugOntology
Field Summary |
---|
Fields inherited from interface org.meta2project.model.AnnotatedEntity |
---|
CASCADE, CASCADE_DELETE_VALUE, COMMENT, MAX_CARD, MIN_CARD, MODEL_URI, TITLE |
Constructor Summary | |
---|---|
DebugOntology(DebugSession session,
Ontology ontology)
|
Method Summary | |
---|---|
OntClass |
createOntClass(java.lang.String name,
OntClass... parentClasses)
Create ontology class with specified short name. |
OntObject |
createOntObject(java.lang.Object... initParams)
Create ontology object with an unique surrogate name. |
OntObject |
createOntObject(java.lang.String name,
java.lang.Object... initParams)
Create ontology object with the specified short name. |
OProperty |
createOProperty(java.lang.String name,
OntClass domain,
OntClass range,
java.lang.Integer minCard,
java.lang.Integer maxCard)
Create ontology oproperty |
TProperty |
createTProperty(java.lang.String name,
OntClass domain,
java.lang.String rangeTypeURI,
int minCard,
int maxCard)
Create ontology tproperty |
TProperty |
createTProperty(java.lang.String name,
OntClass domain,
java.lang.String rangeTypeURI,
int minCard,
java.lang.Integer maxCard)
Create ontology tproperty |
TProperty |
createTProperty(java.lang.String name,
OntClass domain,
Type range,
java.lang.Integer minCard,
java.lang.Integer maxCard)
Create ontology tproperty |
Type |
createType(java.lang.String name)
Create ontology data type with specified short name. |
void |
delete()
Delete the ontology. |
boolean |
equals(java.lang.Object obj)
|
java.util.Collection<OntObject> |
find(FindOption option,
java.lang.String... text)
Find all objects, which tproperty values contains the text. |
java.util.Collection<OntObject> |
getAllOntObjects()
Get all object of the ontology |
java.util.Collection<OProperty> |
getAllOProperties()
Get all oproperties of the ontology |
java.util.Collection<TProperty> |
getAllTProperties()
Get all tproperties of the ontology |
java.util.Collection<Type> |
getAllTypes()
Get all data types from the ontology. |
java.util.Collection<OntClass> |
getBasicOntClasses()
Get a collections of the ontology classes, which has no super classes. |
OntClass |
getOntClass(java.lang.String name)
Get the class by the short name for the ontology |
java.util.Collection<OntClass> |
getOntClasses()
Get all classes from the ontology. |
OntObject |
getOntObject(java.lang.String name)
Get ontology object by the short name. |
OProperty |
getOProperty(java.lang.String name)
Get the ontology tproperty by the short name. |
TProperty |
getTProperty(java.lang.String name)
Get ontology tproperty by short name |
Type |
getType(java.lang.String name)
Get the data type by the short name for the ontology. |
java.lang.String |
getURI()
Get ontology URI |
void |
setURI(java.lang.String uri)
Set new ontology URI |
protected static java.lang.Object[] |
unwrapParams(java.lang.Object... initParams)
|
Methods inherited from class org.meta2project.model.debug.DebugAnnotatedEntity |
---|
getAnnotation, getAnnotationNames, putAnnotation |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.meta2project.model.AnnotatedEntity |
---|
getAnnotation, getAnnotationNames, putAnnotation |
Constructor Detail |
---|
public DebugOntology(DebugSession session, Ontology ontology)
Method Detail |
---|
public java.lang.String getURI()
Ontology
getURI
in interface Ontology
public Type getType(java.lang.String name)
Ontology
getType
in interface Ontology
name
- short name
public java.util.Collection<Type> getAllTypes()
Ontology
getAllTypes
in interface Ontology
public OntClass getOntClass(java.lang.String name)
Ontology
getOntClass
in interface Ontology
name
- short name
public java.util.Collection<OntClass> getOntClasses()
Ontology
getOntClasses
in interface Ontology
public java.util.Collection<OntClass> getBasicOntClasses()
Ontology
getBasicOntClasses
in interface Ontology
public OProperty getOProperty(java.lang.String name)
Ontology
getOProperty
in interface Ontology
name
- short name
public java.util.Collection<OProperty> getAllOProperties()
Ontology
getAllOProperties
in interface Ontology
public TProperty getTProperty(java.lang.String name)
Ontology
getTProperty
in interface Ontology
name
- short name
public java.util.Collection<TProperty> getAllTProperties()
Ontology
getAllTProperties
in interface Ontology
public OntObject getOntObject(java.lang.String name)
Ontology
getOntObject
in interface Ontology
name
- short name
public java.util.Collection<OntObject> getAllOntObjects()
Ontology
getAllOntObjects
in interface Ontology
public Type createType(java.lang.String name)
Ontology
createType
in interface Ontology
name
- short name
public OntClass createOntClass(java.lang.String name, OntClass... parentClasses)
Ontology
createOntClass
in interface Ontology
name
- short nameparentClasses
- super ñlasses of the class
protected static java.lang.Object[] unwrapParams(java.lang.Object... initParams)
public OntObject createOntObject(java.lang.String name, java.lang.Object... initParams)
Ontology
createOntObject
in interface Ontology
name
- short nameinitParams
- init params (OntClass objects)
OntClass
public OntObject createOntObject(java.lang.Object... initParams)
Ontology
createOntObject
in interface Ontology
initParams
- init params (OntClass objects)
OntClass
public OProperty createOProperty(java.lang.String name, OntClass domain, OntClass range, java.lang.Integer minCard, java.lang.Integer maxCard)
Ontology
createOProperty
in interface Ontology
name
- namedomain
- may be nullrange
- may be nullminCard
- may be nullmaxCard
- may be null
public TProperty createTProperty(java.lang.String name, OntClass domain, Type range, java.lang.Integer minCard, java.lang.Integer maxCard)
Ontology
createTProperty
in interface Ontology
name
- namedomain
- domain, may be nullrange
- rande, may be nullminCard
- may be nullmaxCard
- may be null
public TProperty createTProperty(java.lang.String name, OntClass domain, java.lang.String rangeTypeURI, int minCard, int maxCard)
Ontology
createTProperty
in interface Ontology
name
- namedomain
- may be nullrangeTypeURI
- data type URI, may be nullminCard
- min.cardinalitymaxCard
- max.cardinality
public TProperty createTProperty(java.lang.String name, OntClass domain, java.lang.String rangeTypeURI, int minCard, java.lang.Integer maxCard)
Ontology
createTProperty
in interface Ontology
name
- namedomain
- may be nullrangeTypeURI
- data type URI, may be nullminCard
- min.cardinalitymaxCard
- max.cardinality, may be null
public void setURI(java.lang.String uri)
Ontology
setURI
in interface Ontology
uri
- new URIpublic void delete()
Ontology
delete
in interface Ontology
public java.util.Collection<OntObject> find(FindOption option, java.lang.String... text)
Ontology
find
in interface Ontology
option
- find optiontext
- text to find
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |