Examples of AttrImpl


Examples of org.eclipse.wst.xml.core.internal.document.AttrImpl

    if (notifier instanceof IDOMNode) {

      switch (eventType) {
        case INodeNotifier.CHANGE :
          if (changedFeature instanceof AttrImpl) {
            AttrImpl attribute = (AttrImpl) changedFeature;
            String name = attribute.getName();
            if (name.equals("contentType")) { //$NON-NLS-1$
              // using concrete class below, since "changed" is something of an internal method
              PageDirectiveAdapterImpl pageDirectiveAdapter = (PageDirectiveAdapterImpl) ((IDOMDocument) targetElement.getOwnerDocument()).getAdapterFor(PageDirectiveAdapter.class);
              pageDirectiveAdapter.changedContentType(((IndexedRegion) targetElement).getStartOffset(), (String) newValue);
            }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.document.AttrImpl

      int attrLength = attributes.getLength();
      int lastUndefinedRegionOffset = 0;
      boolean startTagSpansOver1Line = false;

      for (int i = 0; i < attrLength; i++) {
        AttrImpl attr = (AttrImpl) attributes.item(i);
        ITextRegion nameRegion = attr.getNameRegion();
        ITextRegion equalRegion = attr.getEqualRegion();
        ITextRegion valueRegion = attr.getValueRegion();

        // append undefined regions
        String undefinedRegion = getUndefinedRegions(node, lastUndefinedRegionOffset, attr.getStartOffset() - lastUndefinedRegionOffset);
        stringBuffer.append(undefinedRegion);
        lastUndefinedRegionOffset = attr.getStartOffset();

        // check for xml:space attribute
        if (flatNode.getText(nameRegion).compareTo(XML_SPACE) == 0) {
          if (valueRegion == null) {
            // [111674] If nothing has been written yet, treat as
View Full Code Here

Examples of org.exist.dom.AttrImpl

            case Node.ELEMENT_NODE:
                return new ElementImpl();
            case Node.TEXT_NODE:
                return new TextImpl();
            case Node.ATTRIBUTE_NODE:
                return new AttrImpl();
            case Node.CDATA_SECTION_NODE:
              return new CDATASectionImpl();
            case Node.PROCESSING_INSTRUCTION_NODE:
                return new ProcessingInstructionImpl();
            case Node.COMMENT_NODE:
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.