org.semanticweb.owl.profiles
Class ConstructNotAllowed<O>

java.lang.Object
  extended by org.semanticweb.owl.profiles.ConstructNotAllowed<O>
Direct Known Subclasses:
AxiomNotAllowed, AxiomsNotAllowed, DataRangeNotAllowed, DescriptionNotAllowed, OWL2Profile.AnnotationValueNotAllowed, OWL2Profile.DataPropertyURIUsedAsObjectPropertyURI

public abstract class ConstructNotAllowed<O>
extends java.lang.Object

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 16-Apr-2008


Constructor Summary
protected ConstructNotAllowed(ConstructNotAllowed cause, O construct)
           
protected ConstructNotAllowed(O construct)
           
protected ConstructNotAllowed(java.util.Set<ConstructNotAllowed> cause, O construct)
           
 
Method Summary
 java.util.Set<ConstructNotAllowed> getCause()
          Gets the chained cause.
 O getConstruct()
          Gets the construct that isn't allowed.
 java.lang.String getReason()
          Gets a short readable message as to why the construct is not allowed.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstructNotAllowed

protected ConstructNotAllowed(O construct)

ConstructNotAllowed

protected ConstructNotAllowed(ConstructNotAllowed cause,
                              O construct)

ConstructNotAllowed

protected ConstructNotAllowed(java.util.Set<ConstructNotAllowed> cause,
                              O construct)
Method Detail

getCause

public java.util.Set<ConstructNotAllowed> getCause()
Gets the chained cause.

Returns:
The cause of this construct not being allowed. The return value may be null if there is no cause.

getConstruct

public O getConstruct()
Gets the construct that isn't allowed.

Returns:
The construct that isn't allowed.

getReason

public java.lang.String getReason()
Gets a short readable message as to why the construct is not allowed. By default this will return the simple name of the implmenentation class.

Returns:
The reason as to why this construct is not allowed.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object