Package org.milyn.profile

Examples of org.milyn.profile.DefaultProfileSet.addProfiles()


  }
 
  public void testGetEmptyAnyMixedEtcElements() {
        DefaultProfileSet profileSet = new DefaultProfileSet("device3");

        profileSet.addProfiles(new String[] {"prof1", "prof2", "prof3"});
    DTDStore.addDTD(profileSet, getClass().getResourceAsStream("xhtml1-transitional.dtd"));
    DTDStore.DTDObjectContainer dtdContainer = DTDStore.getDTDObject(profileSet);
   
    String[] elements = dtdContainer.getEmptyElements()
    assertTrue(Arrays.equals(new String[] {"basefont", "area", "link", "isindex", "col", "base", "meta", "img", "br", "hr", "param", "input"}, elements));
View Full Code Here


  }

  public void testChildElements() {
        DefaultProfileSet profileSet = new DefaultProfileSet("device3");

        profileSet.addProfiles(new String[] {"prof1", "prof2", "prof3"});
    DTDStore.addDTD(profileSet, getClass().getResourceAsStream("xhtml1-transitional.dtd"));
    DTDStore.DTDObjectContainer dtdContainer = DTDStore.getDTDObject(profileSet);
    List l1 = dtdContainer.getChildElements("html");
    List l2 = dtdContainer.getChildElements("html");
   
View Full Code Here

  }

  public void testElementAttributes() {
        DefaultProfileSet profileSet = new DefaultProfileSet("device3");

        profileSet.addProfiles(new String[] {"prof1", "prof2", "prof3"});
    DTDStore.addDTD(profileSet, getClass().getResourceAsStream("xhtml1-transitional.dtd"));
    DTDStore.DTDObjectContainer dtdContainer = DTDStore.getDTDObject(profileSet);
    List l1 = null;
    List l2 = null;
    try {
View Full Code Here

  }
 
  private void print(String name) {
        DefaultProfileSet profileSet = new DefaultProfileSet("device3");

        profileSet.addProfiles(new String[] {"prof1", "prof2", "prof3"});
    DTDStore.addDTD(profileSet, getClass().getResourceAsStream(name));
    DTDStore.DTDObjectContainer dtdContainer = DTDStore.getDTDObject(profileSet);
   
    log.debug("-------- " + name + " ---------");
    log.debug(Arrays.asList(dtdContainer.getEmptyElements()));
View Full Code Here

                String baseProfile = DomUtils.getAttributeValue(profileNode, "base-profile");
                String subProfiles = DomUtils.getAttributeValue(profileNode, "sub-profiles");
                DefaultProfileSet profileSet = new DefaultProfileSet(baseProfile);

                if (subProfiles != null) {
                    profileSet.addProfiles(subProfiles.split(","));
                }

                resourcelist.add(profileSet);
            }
        }
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.