JADE_SL.schema.facets
Class TypedAggregateFacet

java.lang.Object
  extended byJADE_SL.schema.facets.TypedAggregateFacet
All Implemented Interfaces:
Facet

public class TypedAggregateFacet
extends java.lang.Object
implements Facet

This facet forces the elements in an AbsAggregate to be instances of a given schema.

Author:
Giovanni Caire - TILAB

Field Summary
private  ObjectSchema type
           
 
Constructor Summary
TypedAggregateFacet(ObjectSchema s)
          Construct a TypedAggregateFacet that forces the elements in an AbsAggregate to be instances of a given schema
 
Method Summary
 void validate(AbsObject value, Ontology onto)
          Check whether a given value for the slot this Facet applies to is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private ObjectSchema type
Constructor Detail

TypedAggregateFacet

public TypedAggregateFacet(ObjectSchema s)
Construct a TypedAggregateFacet that forces the elements in an AbsAggregate to be instances of a given schema

Method Detail

validate

public void validate(AbsObject value,
                     Ontology onto)
              throws OntologyException
Check whether a given value for the slot this Facet applies to is valid.

Specified by:
validate in interface Facet
Parameters:
value - The value to be checked
Throws:
OntologyException - If the value is not valid


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.