Package jade.content.schema

Examples of jade.content.schema.ObjectSchema.validate()


      // Validate the content against the ontology
      ObjectSchema schema = onto.getSchema(content.getTypeName());
      if (schema == null) {
        throw new OntologyException("No schema found for type "+content.getTypeName());
      }
      schema.validate(content, onto);
    }
  }
 
  private void encode(ACLMessage msg, AbsContentElement content, Codec codec, Ontology onto) throws CodecException, OntologyException {
    if (codec instanceof ByteArrayCodec)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.