Re: adl to java object
Thanks, Sebastian. Yep. This is what I'm looking for. And please whats the easiest way of getting the javadoc I need to look more closely at using the Archetype object... BTW: I'm trying use the eclipse wizard to create a webclient that links to the archetypefinder (http://www.archetypes.com.au/archetypefinder/services/ArchetypeFinderBean?wsdl) but I get validation errors that prevent this. I dont know if anyone here could help out. Please see below: Line 5. AN array declaration uses - restricts or extends - the soapenc:Array type, or the wsdl:array attribute is used in the type declaration. A wsdl:types element contained a data type definition that is not an xml schema definition Line 208. The use attribute of a soapbind:body, soapbind:fault, soapbind:header fault doesnt have value of "literal" Line 132. name attributes are not unique within the portType definition Ime --- On Mon, 6/16/08, Sebastian Garde <sebastian.garde@oceaninformatics.com> wrote: > From: Sebastian Garde <sebastian.garde@oceaninformatics.com> > Subject: Re: adl to java object > To: ref_impl_java@openehr.org > Date: Monday, June 16, 2008, 1:48 AM > Hi Ime, > > is this what you are looking for? > > > BufferedReader in = new BufferedReader( > new InputStreamReader( > new > FileInputStream("D:\\openEHR-EHR-CLUSTER.auscultation.v1.adl") > , "UTF-8" > ) > ); > ADLParser parser = new ADLParser(in); > Archetype a = parser.parse(); > > System.out.println(a.getArchetypeId()); > System.out.println("Concept: "+a.getConcept()); > System.out.println("OntDefs Lang: " + > a.getOntology().getLanguages()); > System.out.println("ConceptName > (en):"+a.getConceptName("en")); > // if exists... System.out.println("ConceptName > (tr):"+a.getConceptName("tr")); > //if exist... System.out.println("ConceptName > (de):"+a.getConceptName("de")); > System.out.println(a.getOntology().termDefinition("en", > "at0000").getText()); > System.out.println(a.getOntology().termDefinition("en", > "at0000").getDescription()); > > Cheers > Sebastian > > ----------- > Hi dev guys, > > I just hope this is the right place to ask this. > Today, I just successfully got the java openehr jars... > > I am now looking looking forward to being able to parse adl > into a java object. > Please I need some documentation or sense of direction in > trying to do this > cos I need to work with the object. > > Pls help > > Thanks a lot > > ime > _______________________________________________ > Ref_impl_java mailing list > Ref_impl_java@openehr.org > http://lists.chime.ucl.ac.uk/mailman/listinfo/ref_impl_java _______________________________________________ Ref_impl_java mailing list Ref_impl_java@openehr.org http://lists.chime.ucl.ac.uk/mailman/listinfo/ref_impl_java