DefaultElement.getDocumentFactory
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.dom4j.tree.DefaultElement.getDocumentFactory(Showing top 14 results out of 315)

  • Common ways to obtain DefaultElement
private void myMethod () {
DefaultElement d =
  • AbstractElement abstractElement;(DefaultElement) abstractElement.clone()
  • Smart code suggestions by Codota
}
origin: dom4j/dom4j

public Element element(String name, Namespace namespace) {
  return element(getDocumentFactory().createQName(name, namespace));
}
origin: dom4j/dom4j

public void setContent(List content) {
  contentRemoved();
  if (content instanceof ContentListFacade) {
    content = ((ContentListFacade) content).getBackingList();
  }
  if (content == null) {
    this.content = null;
  } else {
    int size = content.size();
    List newContent = createContentList(size);
    for (int i = 0; i < size; i++) {
      Object object = content.get(i);
      if (object instanceof Node) {
        Node node = (Node) object;
        Element parent = node.getParent();
        if ((parent != null) && (parent != this)) {
          node = (Node) node.clone();
        }
        newContent.add(node);
        childAdded(node);
      } else if (object != null) {
        String text = object.toString();
        Node node = getDocumentFactory().createText(text);
        newContent.add(node);
        childAdded(node);
      }
    }
    this.content = newContent;
  }
}
origin: dom4j/dom4j

public Attribute attribute(String name, Namespace namespace) {
  return attribute(getDocumentFactory().createQName(name, namespace));
}
origin: org.jvnet.hudson.dom4j/dom4j

public Element element(String name, Namespace namespace) {
  return element(getDocumentFactory().createQName(name, namespace));
}
origin: org.dom4j/dom4j

public Element element(String name, Namespace namespace) {
  return element(getDocumentFactory().createQName(name, namespace));
}
origin: org.dom4j/dom4j

public Attribute attribute(String name, Namespace namespace) {
  return attribute(getDocumentFactory().createQName(name, namespace));
}
origin: org.jvnet.hudson.dom4j/dom4j

public Attribute attribute(String name, Namespace namespace) {
  return attribute(getDocumentFactory().createQName(name, namespace));
}
origin: org.jvnet.hudson.dom4j/dom4j

public Element element(String name, Namespace namespace) {
  return element(getDocumentFactory().createQName(name, namespace));
}
origin: maven/dom4j

public Element element(String name, Namespace namespace) {
  return element(getDocumentFactory().createQName(name, namespace));
}
origin: maven/dom4j

public Attribute attribute(String name, Namespace namespace) {
  return attribute(getDocumentFactory().createQName(name, namespace));
}
origin: org.jvnet.hudson.dom4j/dom4j

public Attribute attribute(String name, Namespace namespace) {
  return attribute(getDocumentFactory().createQName(name, namespace));
}
origin: org.jvnet.hudson.dom4j/dom4j

public void setContent(List content) {
  contentRemoved();
  if (content instanceof ContentListFacade) {
    content = ((ContentListFacade) content).getBackingList();
  }
  if (content == null) {
    this.content = null;
  } else {
    int size = content.size();
    List newContent = createContentList(size);
    for (int i = 0; i < size; i++) {
      Object object = content.get(i);
      if (object instanceof Node) {
        Node node = (Node) object;
        Element parent = node.getParent();
        if ((parent != null) && (parent != this)) {
          node = (Node) node.clone();
        }
        newContent.add(node);
        childAdded(node);
      } else if (object != null) {
        String text = object.toString();
        Node node = getDocumentFactory().createText(text);
        newContent.add(node);
        childAdded(node);
      }
    }
    this.content = newContent;
  }
}
origin: org.jvnet.hudson.dom4j/dom4j

public void setContent(List content) {
  contentRemoved();
  if (content instanceof ContentListFacade) {
    content = ((ContentListFacade) content).getBackingList();
  }
  if (content == null) {
    this.content = null;
  } else {
    int size = content.size();
    List newContent = createContentList(size);
    for (int i = 0; i < size; i++) {
      Object object = content.get(i);
      if (object instanceof Node) {
        Node node = (Node) object;
        Element parent = node.getParent();
        if ((parent != null) && (parent != this)) {
          node = (Node) node.clone();
        }
        newContent.add(node);
        childAdded(node);
      } else if (object != null) {
        String text = object.toString();
        Node node = getDocumentFactory().createText(text);
        newContent.add(node);
        childAdded(node);
      }
    }
    this.content = newContent;
  }
}
origin: maven/dom4j

public void setContent(List content) {
  contentRemoved();
  if (content instanceof ContentListFacade) {
    content = ((ContentListFacade) content).getBackingList();
  }
  if (content == null) {
    this.content = null;
  } else {
    int size = content.size();
    List newContent = createContentList(size);
    for (int i = 0; i < size; i++) {
      Object object = content.get(i);
      if (object instanceof Node) {
        Node node = (Node) object;
        Element parent = node.getParent();
        if ((parent != null) && (parent != this)) {
          node = (Node) node.clone();
        }
        newContent.add(node);
        childAdded(node);
      } else if (object != null) {
        String text = object.toString();
        Node node = getDocumentFactory().createText(text);
        newContent.add(node);
        childAdded(node);
      }
    }
    this.content = newContent;
  }
}
org.dom4j.treeDefaultElementgetDocumentFactory

Popular methods of DefaultElement

  • <init>
  • appendAttributes
  • appendContent
  • attribute
  • attributeList
  • childAdded
  • childRemoved
  • contentRemoved
  • createAttributeList
  • createContentList
  • createEmptyList
  • createResultList
  • createEmptyList,
  • createResultList,
  • createSingleIterator,
  • createSingleResultList,
  • element,
  • getContentAsStringValue,
  • getContentAsText,
  • getNamespace,
  • getNamespacePrefix

Popular classes and methods

  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • findViewById (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JCheckBox (javax.swing)
  • JOptionPane (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)