Examples of fromXml()


Examples of org.apache.wookie.w3c.updates.UpdateDescription.fromXML()

     
     
      // UDPATE DESCRIPTION IS OPTONAL - can only be one, ignore subsequent repetitions
      if(tag.equals(IW3CXMLConfiguration.UPDATE_ELEMENT) && fUpdate == null && child.getNamespace().getURI().equals(IW3CXMLConfiguration.MANIFEST_NAMESPACE)) {
        UpdateDescription update = new UpdateDescription();
        update.fromXML(child);
        // It must have a valid HREF attribute, or it is ignored
        if (update.getHref() != null) fUpdate = update.getHref();
     
   
      // LICENSE IS OPTIONAL - can be many
View Full Code Here

Examples of org.apache.wookie.w3c.updates.UpdateDescriptionDocument.fromXML()

 
  @Test (expected=InvalidUDDException.class)
  public void emptyDocument() throws InvalidUDDException{
    UpdateDescriptionDocument udd = new UpdateDescriptionDocument(null, null, null);
    Document doc = new Document();
    udd.fromXML(doc);
  }
 
  @Test (expected=InvalidUDDException.class)
  public void nullDocument() throws InvalidUDDException{
    UpdateDescriptionDocument udd = new UpdateDescriptionDocument(null, null, null);
View Full Code Here

Examples of org.apache.wookie.w3c.xml.IContentEntity.fromXML()

      // CONTENT IS OPTIONAL - can be 0 or 1
      if(tag.equals(IW3CXMLConfiguration.CONTENT_ELEMENT)) { 
        if (!foundContent){
          foundContent = true;
          IContentEntity aContent = new ContentEntity()
          aContent.fromXML(child,locales,supportedEncodings,zip);
          if (aContent.getSrc()!=null) fContentList.add(aContent);
        }
      }
     
      // FEATURE IS OPTIONAL - can be many
View Full Code Here

Examples of org.javalite.activejdbc.test_models.Person.fromXml()

    public void shouldParseAttributesFromXml() throws ParseException {
        deleteAndPopulateTables("people");

        Person p = new Person();
        String xml = readResource("/person.xml");
        p.fromXml(xml);
        p.saveIt();
        p.refresh();

        SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd");
View Full Code Here

Examples of org.jclouds.xml.XMLParser.fromXML()

    */
   public static void assertPayloadEquals(final Payload payload, final String expected,
         final Class<? extends SingleResourceTransportDto> entityClass) throws IOException {
      // Serialize and deserialize to avoid formatting issues
      XMLParser xml = new JAXBParser("false");
      SingleResourceTransportDto entity = xml.fromXML(expected, entityClass);
      String toMatch = xml.toXML(entity, entityClass);

      assertEquals(payload.getRawContent(), toMatch);
   }
}
View Full Code Here

Examples of org.jclouds.xml.internal.JAXBParser.fromXML()

    */
   public static void assertPayloadEquals(final Payload payload, final String expected,
         final Class<? extends SingleResourceTransportDto> entityClass) throws IOException {
      // Serialize and deserialize to avoid formatting issues
      XMLParser xml = new JAXBParser("false");
      SingleResourceTransportDto entity = xml.fromXML(expected, entityClass);
      String toMatch = xml.toXML(entity, entityClass);

      assertEquals(payload.getRawContent(), toMatch);
   }
}
View Full Code Here

Examples of org.kite9.framework.serialization.XMLHelper.fromXML()

      Validator validator = schema.newValidator();

      SAXSource source = new SAXSource(is);
      validator.validate(source);
     
      helper.fromXML(xml);
    } catch (SAXParseException e) {
      e.printStackTrace();
      Assert.fail("Line: "+ e.getLineNumber()+" Failed validation: " + e.getMessage() + "\n" + xml);
    } catch (SAXException e) {
      e.printStackTrace();
View Full Code Here

Examples of org.milyn.javabean.binding.xml.XMLBinding.fromXML()

    public void test() throws IOException, SAXException {
        XMLBinding xmlBinding =
                new XMLBinding().add(getClass().getResourceAsStream("POType-binding.xml")).intiailize();

        String poXML = StreamUtils.readStreamAsString(getClass().getResourceAsStream("po.xml"));
        POType po = xmlBinding.fromXML(new StringSource(poXML), POType.class);

        StringWriter writer = new StringWriter();
        xmlBinding.toXML(po, writer);

        XMLUnit.setIgnoreWhitespace(true);
View Full Code Here

Examples of org.pentaho.metadata.query.model.util.QueryXmlHelper.fromXML()


    try
    {
      // never returns null
      return helper.fromXML(getDomainRepository(), query);
    }
    catch (ReportDataFactoryException e)
    {
      throw e;
    }
View Full Code Here

Examples of org.pentaho.platform.uifoundation.component.FilterDefinition.fromXml()

      fd = new StaticFilterDefinition( node, session, logger );
    } else {
      //
    }
    if ( fd != null ) {
      fd.fromXml( node );
    }
    return fd;
  }
}
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.