Package org.richfaces.dtd

Examples of org.richfaces.dtd.DocumentDefinition


  private Map<URL, DocumentDefinition> definitions
    = new HashMap<URL, DocumentDefinition>();
 
  @Override
  public synchronized DocumentDefinition getDocumentDefinition(URL resource) {
    DocumentDefinition def = null;
    if (definitions.containsKey(resource)) {
      def = definitions.get(resource);
    } else {
     
      try {
View Full Code Here


    DTD dtd = new DTDParser(resource).parse();
   
    Element rootElement = fromWutka(dtd.rootElement);
   
    DocumentDefinition definition = new DocumentDefinition(resource, rootElement);
   
    @SuppressWarnings("unchecked")
    Enumeration<DTDElement> elements = dtd.elements.elements();
   
    while(elements.hasMoreElements()) {
      DTDElement element = elements.nextElement();
     
      definition.addElement(fromWutka(element));
    }
   
    return definition;
  }
View Full Code Here

 
  @SuppressWarnings("unchecked")
  public static Set<String> getAttributes(String tagName) {
    Set<String> atrs = Collections.emptySet();
   
    DocumentDefinition dtd =
      DocumentDefinitionFactory.instance().getDocumentDefinition(HTML_DTD);
   
    if (dtd != null) {
      Element element = dtd.getElement(tagName);

      if (element != null) {
        atrs = element.getAttributes().keySet();
      }
    }
View Full Code Here

TOP

Related Classes of org.richfaces.dtd.DocumentDefinition

Copyright © 2018 www.massapicom. 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.