it.polito.elite.ontology
Class NodeTypeOWL

java.lang.Object
  extended by it.polito.elite.ontology.NodeTypeAbstraction
      extended by it.polito.elite.ontology.NodeTypeOWL

public class NodeTypeOWL
extends NodeTypeAbstraction


Field Summary
private  int cardinality
           
private  NodeTypeOWL filler
           
private  java.lang.String onProperty
           
private  java.util.HashSet<NodeTypeOWL> operands
           
private  java.lang.String resourceName
           
 
Fields inherited from class it.polito.elite.ontology.NodeTypeAbstraction
isEnumeration, isLogicalClass, isRestriction, type
 
Constructor Summary
protected NodeTypeOWL()
           
  NodeTypeOWL(edu.stanford.smi.protegex.owl.model.RDFObject resource)
           
 
Method Summary
 int getCardinality()
          Retrieves the cardinality of the restriction if type is Cardinality (base, min o max)
 java.util.HashSet<NodeTypeAbstraction> getEnumerationSet()
          Retrieves the set of NodeTypeAbstraction in a OneOf enumeration
 java.util.HashSet<NodeTypeAbstraction> getLogicSet()
          Retrieves the set of NodeTypeAbstraction forming the union logical class or the intersection.
 NodeTypeAbstraction getRestrictionFiller()
          Retrieves the NodeTypeAbstraction filler of the restrictions, if it is a HAS_VALUE or Qualified Cardinality or a SOME / ALL values TO restrictions
 java.lang.String getRestrictionPropertyURI()
          Retrieves the URI of the property restriction is on
static NodeTypeAbstraction parseExpression(NodeTypesEnum t, java.lang.String expression)
           
 java.lang.String toString()
          Represents the node stored in the internal model of the subclass with a textual expression, an example format could be: UnionOf( ConceptA, ComplementOf(ConceptB),..) - OneOf(InstA, InstB) with the pourpose to be displayed on Screen
 
Methods inherited from class it.polito.elite.ontology.NodeTypeAbstraction
equals, getType, hashCode, isEnumeration, isLogicalClass, isRestriction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cardinality

private int cardinality

filler

private NodeTypeOWL filler

onProperty

private java.lang.String onProperty

operands

private java.util.HashSet<NodeTypeOWL> operands

resourceName

private java.lang.String resourceName
Constructor Detail

NodeTypeOWL

protected NodeTypeOWL()

NodeTypeOWL

public NodeTypeOWL(edu.stanford.smi.protegex.owl.model.RDFObject resource)
Method Detail

getCardinality

public int getCardinality()
Description copied from class: NodeTypeAbstraction
Retrieves the cardinality of the restriction if type is Cardinality (base, min o max)

Specified by:
getCardinality in class NodeTypeAbstraction
Returns:
a int value > 0 or -1 if not a cardinality restriction type

getEnumerationSet

public java.util.HashSet<NodeTypeAbstraction> getEnumerationSet()
Description copied from class: NodeTypeAbstraction
Retrieves the set of NodeTypeAbstraction in a OneOf enumeration

Specified by:
getEnumerationSet in class NodeTypeAbstraction
Returns:
a set of OneOf, if type is Enumeration, null otherwise

getLogicSet

public java.util.HashSet<NodeTypeAbstraction> getLogicSet()
Description copied from class: NodeTypeAbstraction
Retrieves the set of NodeTypeAbstraction forming the union logical class or the intersection. Returns null otherwise

Specified by:
getLogicSet in class NodeTypeAbstraction
Returns:
a set of NodeTypeAbstraction, if type is Union or Intersection, null otherwise

getRestrictionFiller

public NodeTypeAbstraction getRestrictionFiller()
Description copied from class: NodeTypeAbstraction
Retrieves the NodeTypeAbstraction filler of the restrictions, if it is a HAS_VALUE or Qualified Cardinality or a SOME / ALL values TO restrictions

Specified by:
getRestrictionFiller in class NodeTypeAbstraction
Returns:
a NodeTypeAbstraction, if type is correct type, null otherwise

getRestrictionPropertyURI

public java.lang.String getRestrictionPropertyURI()
Description copied from class: NodeTypeAbstraction
Retrieves the URI of the property restriction is on

Specified by:
getRestrictionPropertyURI in class NodeTypeAbstraction
Returns:
a set of NodeTypeAbstraction, if type is Union or Intersection, null otherwise

parseExpression

public static NodeTypeAbstraction parseExpression(NodeTypesEnum t,
                                                  java.lang.String expression)

toString

public java.lang.String toString()
Description copied from class: NodeTypeAbstraction
Represents the node stored in the internal model of the subclass with a textual expression, an example format could be: UnionOf( ConceptA, ComplementOf(ConceptB),..) - OneOf(InstA, InstB) with the pourpose to be displayed on Screen

Specified by:
toString in class NodeTypeAbstraction