# adl to java object **Category:** [Reference Implementation: Java (archive)](https://discourse.openehr.org/c/reference-implementation-java-archive/154) **Created:** 2008-06-16 08:31 UTC **Views:** 13 **Replies:** 3 **URL:** https://discourse.openehr.org/t/adl-to-java-object/12627 --- ## Post #1 by @Ime_Asangansi 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 --- ## Post #2 by @system 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 --- ## Post #3 by @Ime_Asangansi 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 --- ## Post #4 by @system > 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... Hi Ime, CD to top directory of a project (e.g. openehr-rm-core), type "mvn javadoc:javadoc" and find the javadocs from **target/site/apidocs** /Rong --- **Canonical:** https://discourse.openehr.org/t/adl-to-java-object/12627 **Original content:** https://discourse.openehr.org/t/adl-to-java-object/12627