Package org.eclipse.wst.xml.core.internal.contentmodel

Examples of org.eclipse.wst.xml.core.internal.contentmodel.CMEntityDeclaration


    CMDocument cm = getCMDocument();
    if (cm != null) {
      CMNamedNodeMap map = cm.getEntities();
      if (map != null) {
        CMEntityDeclaration decl = (CMEntityDeclaration) map.getNamedItem(name);
        if (decl != null) {
          String value = decl.getValue();
          if (value == null)
            return null;
          int valueLength = value.length();
          if (valueLength > 1 && value.charAt(0) == '&' && value.charAt(1) == '#' && value.charAt(valueLength - 1) == ';') {
            // character reference
View Full Code Here


  }
 
  private Properties mapToProperties(CMNamedNodeMap map) {
    Properties p = new Properties();
    for (int i = 0; i < map.getLength(); i++) {
      CMEntityDeclaration decl = (CMEntityDeclaration) map.item(i);
      p.put(decl.getName(), decl.getValue());
    }
    return p;
  }
View Full Code Here

  }

  protected Properties mapToProperties(CMNamedNodeMap map) {
    Properties p = new Properties();
    for (int i = 0; i < map.getLength(); i++) {
      CMEntityDeclaration decl = (CMEntityDeclaration) map.item(i);
      p.put(decl.getName(), decl.getValue());
    }
    return p;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.core.internal.contentmodel.CMEntityDeclaration

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.