Package org.dom4j

Examples of org.dom4j.Branch


/* 231 */       completeCurrentTextNode();
/*     */     }
/*     */
/* 234 */     QName qName = this.namespaceStack.getQName(namespaceURI, localName, qualifiedName);
/*     */
/* 237 */     Branch branch = this.currentElement;
/*     */
/* 239 */     if (branch == null) {
/* 240 */       branch = getDocument();
/*     */     }
/*     */
/* 243 */     Element element = branch.addElement(qName);
/*     */
/* 246 */     addDeclaredNamespaces(element);
/*     */
/* 249 */     addAttributes(element, attributes);
/*     */
View Full Code Here


{
  public void write(java.lang.Object output, IThingWriteContext context, Thing t) throws ThingWriteException
  {
    //TODO: use methods instead of comments to segment this
    ComponentType comp = (ComponentType)t;
    Branch parent = (Branch)output; // Element or Document
   
    Element compElem = parent.addElement("DesignerComponent");

    writeHeader(comp, compElem);

    Attribute cdeModelIgnoreAttr = comp.tryGetAttribute("cdeModelIgnore");
    Attribute cdeModelPrefixAttr = comp.tryGetAttribute("cdeModelPrefix");
View Full Code Here

public class XmlPropertyTypeWriter implements IThingWriter
{
  public void write(java.lang.Object output, IThingWriteContext context, Thing t) throws ThingWriteException
  {
    PropertyType prop = (PropertyType)t;
    Branch parent = (Branch)output; // Element or Document

    boolean isAdvanced = PropertyType.CAT_ADVANCED.equals(prop.getCategory());

    Element propElem = parent.addElement("DesignerProperty");
    Element headerElem = propElem.addElement("Header");

    String defValue = prop.getDefaultValue();
    if("\"\"".equals(defValue))
    {
View Full Code Here

TOP

Related Classes of org.dom4j.Branch

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.