oracle.owb.foundation.type
Interface Domain

All Superinterfaces:
Datatype, Datatyped, OWBNamedObject
All Known Subinterfaces:
EnumerationDomain, RangeDomain

public interface Domain
extends Datatyped, Datatype

Domain interface provides an extensible hierarchy for defining value domains for properties/attributes in OWB. A domain is composed of three parts

  • a data type
  • a comparetor used by the domain
  • a "valid" method for deciding if a value is valid in the domain

  • Method Summary
     boolean isValid(java.lang.Object value)
              Check if the value is valid in this domain.
     
    Methods inherited from interface oracle.owb.foundation.type.Datatyped
    getDatatype, getLength, getPrecision, getScale, isPrecisionOmitted, setDatatype, setLength, setPrecision, setPrecisionOmitted, setScale
     
    Methods inherited from interface oracle.owb.foundation.OWBNamedObject
    delete, getBusinessName, getClassDefinition, getComponent, getDescription, getName, getUOID, isDeletable, isEditable, isRenamable, setBusinessName, setDescription, setName
     
    Methods inherited from interface oracle.owb.foundation.type.Datatype
    getDatatypeSet, isAbstractDatatype, isDomain, isListDatatype, isScalarDatatype
     

    Method Detail

    isValid

    public boolean isValid(java.lang.Object value)
    Check if the value is valid in this domain.
    Parameters:
    value - A value to be checked
    Returns:
    true if the value is allowed in this domain; false otherwise.