200201202203204205206207208209210
throw new OntologyException("Unknown ontology "+msg.getOntology()); } } Ontology onto = getMergedOntology(codec, o); AbsContentElement abs = (AbsContentElement) onto.fromObject(content); validate(abs, onto); encode(msg, abs, codec, onto); }
235236237238239240241242243244245
throw new OntologyException("Unknown ontology "+msg.getOntology()); } } Ontology onto = getMergedOntology(codec, o); AbsContentElement content = decode(msg, codec, onto); validate(content, onto); return content; }
270271272273274275276277278279280
throw new OntologyException("Unknown ontology "+msg.getOntology()); } } Ontology onto = getMergedOntology(codec, o); AbsContentElement content = decode(msg, codec, onto); validate(content, onto); return (ContentElement) onto.toObject(content); }