uk.ac.manchester.cs.owl
Class OWLRestrictionImpl<P extends OWLPropertyExpression>

java.lang.Object
  extended by uk.ac.manchester.cs.owl.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.OWLAnonymousDescriptionImpl
          extended by uk.ac.manchester.cs.owl.OWLRestrictionImpl<P>
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLAnonymousDescription, OWLDescription, OWLObject, OWLPropertyRange, OWLRestriction<P>
Direct Known Subclasses:
OWLCardinalityRestrictionImpl, OWLObjectSelfRestrictionImpl, OWLQuantifiedRestrictionImpl, OWLValueRestrictionImpl

public abstract class OWLRestrictionImpl<P extends OWLPropertyExpression>
extends OWLAnonymousDescriptionImpl
implements OWLRestriction<P>

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 26-Oct-2006


Constructor Summary
OWLRestrictionImpl(OWLDataFactory dataFactory, P property)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 P getProperty()
          Gets the property that the restriction acts along.
 boolean isLiteral()
          Determines if this class is a literal.
 
Methods inherited from class uk.ac.manchester.cs.owl.OWLAnonymousDescriptionImpl
asOWLClass, getComplementNNF, getNNF, isAnonymous, isOWLNothing, isOWLThing
 
Methods inherited from class uk.ac.manchester.cs.owl.OWLObjectImpl
compareTo, getOWLDataFactory, getSignature, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owl.model.OWLDescription
accept, accept, asOWLClass, getComplementNNF, getNNF, isAnonymous, isOWLNothing, isOWLThing
 
Methods inherited from interface org.semanticweb.owl.model.OWLObject
accept, accept, getSignature
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

OWLRestrictionImpl

public OWLRestrictionImpl(OWLDataFactory dataFactory,
                          P property)
Method Detail

isLiteral

public boolean isLiteral()
Description copied from interface: OWLDescription
Determines if this class is a literal. A literal being either a named class or the negation of a named class (i.e. A or not(A)).

Specified by:
isLiteral in interface OWLDescription
Returns:
true if this is a literal, or false if this is not a literal.

getProperty

public P getProperty()
Description copied from interface: OWLRestriction
Gets the property that the restriction acts along.

Specified by:
getProperty in interface OWLRestriction<P extends OWLPropertyExpression>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OWLObjectImpl