nl.tudelft.tbm.eeni.owl2java.model.jmodel
Class JClass

java.lang.Object
  extended by nl.tudelft.tbm.eeni.owl2java.model.jmodel.JMapped
      extended by nl.tudelft.tbm.eeni.owl2java.model.jmodel.JClass
All Implemented Interfaces:
IName, IReporting

public class JClass
extends JMapped


Nested Class Summary
static class JClass.AnonymousClassType
           
 
Constructor Summary
JClass(JModel model, String name, String mapUri)
           
 
Method Summary
 void addDomainProperty(JProperty prop)
           
 void addDomainRestrictionsContainer(JProperty property, JRestrictionsContainer rc)
           
 void addEquivalentClass(JClass cls)
           
 void addSubClass(JClass cls)
           
 void addSuperClass(JClass cls)
           
 int aggegrateAll()
           
 void createDomainPropertyRepresentations()
           
 List<JPropertyRepresentation> getAggregatedPropertyRepresentations()
           
 JRestrictionsContainer getAggregatedRestrictionsContainer(JProperty prop)
           
 JRestrictionsContainer getAggregatedRestrictionsContainer(String uri)
           
 List<? extends com.hp.hpl.jena.ontology.OntClass> getAnonymousClassOperands()
           
 JClass.AnonymousClassType getAnonymousClassType()
           
 List<JPropertyRepresentation> getDomainPropertyRepresentations()
           
 JRestrictionsContainer getDomainRestrictionsContainer(JProperty prop)
           
 JRestrictionsContainer getDomainRestrictionsContainer(String uri)
           
 JClass getFirstDirectSuperClass()
           
 String getJavaClassFullName()
           
 String getJavaClassName()
           
 String getJavaInterfaceFullName()
           
 String getJavaInterfaceName()
           
 String getJavaPackageName()
           
 JModel getJModel()
           
 String getJModelReport()
           
 com.hp.hpl.jena.ontology.OntClass getOntClass()
           
 JPackage getPackage()
           
 boolean hasAggregatedProperty(String uri)
           
 boolean hasAggregatedPropertyRepresentation(JProperty property)
           
 boolean hasAggregatedRestrictionsContainer(String propertyUri)
           
 boolean hasDomainProperty(JProperty property)
           
 boolean hasDomainProperty(String uri)
           
 boolean hasDomainPropertyRepresentation(JPropertyRepresentation representation)
           
 boolean hasDomainRestrictionsContainer(JProperty property)
           
 boolean hasDomainRestrictionsContainer(JRestrictionsContainer restriction)
           
 boolean hasDomainRestrictionsContainer(String propertyUri)
           
 boolean hasSubClass(JClass cls, boolean recursive)
           
 boolean hasSuperClass(JClass cls, boolean recursive)
           
 boolean hasSuperClasses()
           
 boolean isAnonymous()
           
 boolean isRootClass()
           
 List<JProperty> listAggregatedProperties()
           
 List<JPropertyRepresentation> listAggregatedPropertyRepresentations()
           
 List<JPropertyRepresentation> listAggregatedPropertyRepresentations(JProperty property)
           
 List<JClass> listAllSubClasses()
          List JClass representations of all (direct and indirect) subclasses of this class
 List<JClass> listDirectSubClasses()
           
 List<JClass> listDirectSuperClasses()
           
 List<JProperty> listDomainProperties()
           
 Map<String,JProperty> listDomainPropertiesAsMap(boolean recursive)
           
 List<JPropertyRepresentation> listDomainPropertyRepresentations()
           
 List<JPropertyRepresentation> listDomainPropertyRepresentations(JProperty property)
           
 List<JRestrictionsContainer> listDomainRestrictionContainers()
           
 void removeAllPropertyRepresentations()
           
 void removeDomainProperty(JProperty property)
           
 void removeDomainRestrictionsContainer(JProperty property)
           
 void removeSubClassRelation(JClass subCls)
           
 void removeSuperClassRelation(JClass superCls)
           
 void setAnonymous(JClass.AnonymousClassType type, List<? extends com.hp.hpl.jena.ontology.OntClass> operands)
           
 void setOntClass(com.hp.hpl.jena.ontology.OntClass ontClass)
           
 void setPackage(JPackage pkg)
           
 String toString()
           
 
Methods inherited from class nl.tudelft.tbm.eeni.owl2java.model.jmodel.JMapped
equals, getComment, getJavaNameCaps, getMapUri, getName, hashCode, setComment
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JClass

public JClass(JModel model,
              String name,
              String mapUri)
Method Detail

addDomainProperty

public void addDomainProperty(JProperty prop)

addEquivalentClass

public void addEquivalentClass(JClass cls)

addDomainRestrictionsContainer

public void addDomainRestrictionsContainer(JProperty property,
                                           JRestrictionsContainer rc)

addSubClass

public void addSubClass(JClass cls)

addSuperClass

public void addSuperClass(JClass cls)

aggegrateAll

public int aggegrateAll()

listAggregatedPropertyRepresentations

public List<JPropertyRepresentation> listAggregatedPropertyRepresentations()

createDomainPropertyRepresentations

public void createDomainPropertyRepresentations()

getJavaClassFullName

public String getJavaClassFullName()

getJavaClassName

public String getJavaClassName()

getJavaInterfaceFullName

public String getJavaInterfaceFullName()

getJavaInterfaceName

public String getJavaInterfaceName()

getJavaPackageName

public String getJavaPackageName()

getJModel

public JModel getJModel()

getOntClass

public com.hp.hpl.jena.ontology.OntClass getOntClass()

getPackage

public JPackage getPackage()

getDomainPropertyRepresentations

public List<JPropertyRepresentation> getDomainPropertyRepresentations()

getAggregatedPropertyRepresentations

public List<JPropertyRepresentation> getAggregatedPropertyRepresentations()

getJModelReport

public String getJModelReport()
Specified by:
getJModelReport in interface IReporting
Overrides:
getJModelReport in class JMapped

getDomainRestrictionsContainer

public JRestrictionsContainer getDomainRestrictionsContainer(JProperty prop)

getAggregatedRestrictionsContainer

public JRestrictionsContainer getAggregatedRestrictionsContainer(JProperty prop)

getDomainRestrictionsContainer

public JRestrictionsContainer getDomainRestrictionsContainer(String uri)

getAggregatedRestrictionsContainer

public JRestrictionsContainer getAggregatedRestrictionsContainer(String uri)

hasDomainProperty

public boolean hasDomainProperty(JProperty property)

hasDomainProperty

public boolean hasDomainProperty(String uri)

hasAggregatedProperty

public boolean hasAggregatedProperty(String uri)

hasDomainPropertyRepresentation

public boolean hasDomainPropertyRepresentation(JPropertyRepresentation representation)

hasAggregatedPropertyRepresentation

public boolean hasAggregatedPropertyRepresentation(JProperty property)

hasDomainRestrictionsContainer

public boolean hasDomainRestrictionsContainer(String propertyUri)

hasAggregatedRestrictionsContainer

public boolean hasAggregatedRestrictionsContainer(String propertyUri)

hasDomainRestrictionsContainer

public boolean hasDomainRestrictionsContainer(JProperty property)

hasDomainRestrictionsContainer

public boolean hasDomainRestrictionsContainer(JRestrictionsContainer restriction)

hasSubClass

public boolean hasSubClass(JClass cls,
                           boolean recursive)

hasSuperClass

public boolean hasSuperClass(JClass cls,
                             boolean recursive)

hasSuperClasses

public boolean hasSuperClasses()

listAllSubClasses

public List<JClass> listAllSubClasses()
List JClass representations of all (direct and indirect) subclasses of this class


isAnonymous

public boolean isAnonymous()

getAnonymousClassType

public JClass.AnonymousClassType getAnonymousClassType()

getAnonymousClassOperands

public List<? extends com.hp.hpl.jena.ontology.OntClass> getAnonymousClassOperands()

setAnonymous

public void setAnonymous(JClass.AnonymousClassType type,
                         List<? extends com.hp.hpl.jena.ontology.OntClass> operands)

isRootClass

public boolean isRootClass()

listAggregatedProperties

public List<JProperty> listAggregatedProperties()

listDomainProperties

public List<JProperty> listDomainProperties()

listDomainPropertyRepresentations

public List<JPropertyRepresentation> listDomainPropertyRepresentations()

listDomainPropertyRepresentations

public List<JPropertyRepresentation> listDomainPropertyRepresentations(JProperty property)

listAggregatedPropertyRepresentations

public List<JPropertyRepresentation> listAggregatedPropertyRepresentations(JProperty property)

listDirectSubClasses

public List<JClass> listDirectSubClasses()

listDirectSuperClasses

public List<JClass> listDirectSuperClasses()

getFirstDirectSuperClass

public JClass getFirstDirectSuperClass()

listDomainPropertiesAsMap

public Map<String,JProperty> listDomainPropertiesAsMap(boolean recursive)

listDomainRestrictionContainers

public List<JRestrictionsContainer> listDomainRestrictionContainers()

removeAllPropertyRepresentations

public void removeAllPropertyRepresentations()

removeDomainProperty

public void removeDomainProperty(JProperty property)

removeDomainRestrictionsContainer

public void removeDomainRestrictionsContainer(JProperty property)

removeSubClassRelation

public void removeSubClassRelation(JClass subCls)

removeSuperClassRelation

public void removeSuperClassRelation(JClass superCls)

setOntClass

public void setOntClass(com.hp.hpl.jena.ontology.OntClass ontClass)

setPackage

public void setPackage(JPackage pkg)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.