Examples of unmarshal()


Examples of de.ambits.csvmaster.marshal.ICsvMarshaller.unmarshal()

                try {
                  monitor.beginTask("Create Table view...", 4);
                  monitor.worked(1);
                  monitor.subTask("Marshall data...");
                  Thread.sleep(DUMMY_PROGESS_TIME);
                  csvTable = marshaller.unmarshal(getCsvContent(), true);
                  csvTable.addEmptyRow();
                  monitor.worked(1);
                  monitor.subTask("Setting input...");
                  Thread.sleep(DUMMY_PROGESS_TIME);
                  tableViewer.setInput(csvTable);
View Full Code Here

Examples of hudson.XmlFile.unmarshal()

    }

    public synchronized boolean load() throws IOException {
        XmlFile config = getConfigFile();
        if (config != null && config.exists()) {
            config.unmarshal(this);
            return true;
        }
        return false;

View Full Code Here

Examples of inspector.jqcml.jaxb.adapters.QualityAssessmentAdapter.unmarshal()

    try {
      // unmarshal this element
      Object temp = unmarshaller.unmarshal(xmlSnippet);
      QualityAssessmentList qaList = (QualityAssessmentList) JAXBIntrospector.getValue(temp);
      QualityAssessmentAdapter adapter = new QualityAssessmentAdapter();
      QualityAssessment result = adapter.unmarshal(qaList);
     
      // resolve references to Cv's (unmarshal them if required)
      adapter.resolveReferences(result, cvCache, index, unmarshaller);
     
      // set the isSet flag based on the element name
View Full Code Here

Examples of javax.xml.bind.Unmarshaller.unmarshal()

  }

  @Override
  protected VDBMetaData parse(VFSDeploymentUnit unit, VirtualFile file, VDBMetaData root) throws Exception {
    Unmarshaller un = VDBParserDeployer.getUnMarsheller();
    VDBMetaData vdb = (VDBMetaData)un.unmarshal(file.openStream());
   
    vdb.setUrl(unit.getRoot().toURL());
    vdb.setDynamic(true);
   
    LogManager.logDetail(LogConstants.CTX_RUNTIME,"VDB "+unit.getRoot().getName()+" has been parsed.")//$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of javax.xml.bind.Unmarshaller.unmarshal()

            } else if (StreamSource.class.isAssignableFrom(callback.getSupportedFormats()[0])) {    
                obj = new StreamSource(getSOAPBodyStream(doc));
            } else if (Object.class.isAssignableFrom(callback.getSupportedFormats()[0])) {          
                JAXBContext context = callback.getJAXBContext();
                Unmarshaller u = context.createUnmarshaller();
                return u.unmarshal(doc);                   
            }
        } catch (Exception se) {
            se.printStackTrace();
        }
        return obj;
View Full Code Here

Examples of javax.xml.bind.Unmarshaller.unmarshal()

                context = JAXBContext.newInstance(clazz);
            }
            Unmarshaller u = context.createUnmarshaller();
            u.setSchema(schema);

            obj = (clazz != null) ? u.unmarshal(srcNode, clazz) : u.unmarshal(srcNode);
           
            if (obj instanceof JAXBElement<?>) {
                JAXBElement<?> el = (JAXBElement<?>)obj;
                if (isSame(el.getName(), elName)) {
                    obj = el.getValue();
View Full Code Here

Examples of javax.xml.bind.Unmarshaller.unmarshal()

                context = JAXBContext.newInstance(clazz);
            }
            Unmarshaller u = context.createUnmarshaller();
            u.setSchema(schema);

            obj = (clazz != null) ? u.unmarshal(srcNode, clazz) : u.unmarshal(srcNode);
           
            if (obj instanceof JAXBElement<?>) {
                JAXBElement<?> el = (JAXBElement<?>)obj;
                if (isSame(el.getName(), elName)) {
                    obj = el.getValue();
View Full Code Here

Examples of javax.xml.bind.Unmarshaller.unmarshal()

        Object obj = null;
        try {
            Unmarshaller u = context.createUnmarshaller();
            u.setSchema(schema);

            obj = u.unmarshal(srcNode);
           
            if (obj instanceof JAXBElement<?>) {
                JAXBElement<?> el = (JAXBElement<?>)obj;
                if (el.getName().equals(elName)) {
                    obj = el.getValue();
View Full Code Here

Examples of javax.xml.bind.Unmarshaller.unmarshal()

            JAXBContext context = null;
            String packageName = RMUtils.getWSRMPolicyFactory().getClass().getPackage().getName();
            try {
                context = JAXBContext.newInstance(packageName, getClass().getClassLoader());
                Unmarshaller u = context.createUnmarshaller();
                Object obj = u.unmarshal(nl.item(0));
                if (obj instanceof JAXBElement<?>) {
                    JAXBElement<?> el = (JAXBElement<?>)obj;
                    obj = el.getValue();
                }
                rma = (RMAssertionType)obj;
View Full Code Here

Examples of javax.xml.bind.Unmarshaller.unmarshal()

        context = JAXBContext.newInstance(packageName, getClass().getClassLoader());
        Unmarshaller u = context.createUnmarshaller();
        if (doValidate) {
            u.setSchema(schema);
        }
        obj = u.unmarshal(data);
        if (obj instanceof JAXBElement<?>) {
            JAXBElement<?> el = (JAXBElement<?>)obj;
            obj = el.getValue();
            /*
             * if (el.getName().equals(type)) { obj = el.getValue(); }
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.