org.deri.wsmo4j.validator
Class AttributeErrorImpl

java.lang.Object
  extended by org.deri.wsmo4j.validator.ValidationMessageImpl
      extended by org.deri.wsmo4j.validator.ValidationErrorImpl
          extended by org.deri.wsmo4j.validator.AttributeErrorImpl
All Implemented Interfaces:
org.wsmo.validator.AttributeError, org.wsmo.validator.ValidationError, org.wsmo.validator.ValidationMessage

public class AttributeErrorImpl
extends ValidationErrorImpl
implements org.wsmo.validator.AttributeError


Field Summary
 
Fields inherited from interface org.wsmo.validator.ValidationError
ANON_ID_ERR, ATTR_CARD_ERR, ATTR_CONS_ERR, ATTR_ERR, ATTR_FEAT_ERR, AX_ATOMIC_ERR, AX_BODY_ERR, AX_EQUIV_ERR, AX_FORMULA_ERR, AX_GRAPH_ERR, AX_HEAD_ERR, AX_IMP_ERR, AX_IMPL_BY_ERR, AX_LHS_ERR, AX_RHS_ERR, AX_SAFETY_COND, CONC_ERR, ID_ERR, IMPORT_ERR, META_MODEL_ERR, REL_ARITY_ERR, REL_CONS_ERR, REL_ERR, REL_INST_ERR
 
Constructor Summary
AttributeErrorImpl(org.wsmo.common.Entity entity, org.omwg.ontology.Attribute attribute, String reason, String variant)
           
 
Method Summary
 org.omwg.ontology.Attribute getAttribute()
           
 String toString()
          Formats the String representation of the ValidationError.
 
Methods inherited from class org.deri.wsmo4j.validator.ValidationErrorImpl
equals, getViolatesVariant, hashCode
 
Methods inherited from class org.deri.wsmo4j.validator.ValidationMessageImpl
getEntity, getQuickFix, getReason
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.wsmo.validator.ValidationError
getViolatesVariant
 
Methods inherited from interface org.wsmo.validator.ValidationMessage
getEntity, getQuickFix, getReason
 

Constructor Detail

AttributeErrorImpl

public AttributeErrorImpl(org.wsmo.common.Entity entity,
                          org.omwg.ontology.Attribute attribute,
                          String reason,
                          String variant)
Method Detail

getAttribute

public org.omwg.ontology.Attribute getAttribute()
Specified by:
getAttribute in interface org.wsmo.validator.AttributeError
Returns:
String representation of the attribute in which the violation occured
See Also:
AttributeError.getAttribute()

toString

public String toString()
Formats the String representation of the ValidationError.

Overrides:
toString in class ValidationErrorImpl
See Also:
Object.toString()


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.