Examples of CMAttributeDeclarationImpl


Examples of org.eclipse.wst.xml.core.internal.contentmodel.basic.CMAttributeDeclarationImpl

    NamedNodeMap attributeMap = element.getAttributes();
    int attributeMapLength = attributeMap.getLength();
    for (int i = 0; i < attributeMapLength; i++)
    {
      Attr attr = (Attr)attributeMap.item(i);
      CMAttributeDeclarationImpl ad = (CMAttributeDeclarationImpl)ed.getAttributeMap().getNamedItem(attr.getNodeName());
      if (ad == null)
      {    
        // todo... use an attribute pool to be more efficient?
        ad = new CMAttributeDeclarationImpl(attr.getNodeName(), CMAttributeDeclaration.OPTIONAL);
        ad.setInferred(true);
        ed.getAttributeMap().put(ad);
      }
    }
    return ed;
  }        
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.