protected void createOMComment(OMContainer parent, String content) { factory.createOMComment(parent, content); }
public <T extends Base> T addComment(String value) { factory.createOMComment(this, value); return (T)this; }
protected void createOMComment(OMContainer parent, String content) { factory.createOMComment(parent, content); }
public void comment(char ch[], int start, int length) throws SAXException { String content = new String(ch, start, length); OMContainer parent = getParent(); factory.createOMComment(parent, content); }
/** * Serialze comment String into a OMComment node and add to the parent OMElement * * @param parent OMElement of parent * @param comment String comment to be serialized * @return Serialized OMComment node */ public static OMComment serializeComment(OMElement parent, String comment) { OMComment omComment = fac.createOMComment(null, comment); if (parent != null) { parent.addChild(omComment); } return omComment; } }
/** * Serialize String Comment entries from a List * * @param parent OMElement to be updated * @param commentList List of comment entries to be serialized */ protected void serializeComments(OMElement parent, List<String> commentList) { for (String comment : commentList) { OMComment commendNode = fac.createOMComment(parent, "comment"); commendNode.setValue(comment); parent.addChild(commendNode); } }
/** * Create a comment type BXML. * * @param content Comment content * @return BXML Comment type BXML */ public static BXML<?> createXMLComment(String content) { OMComment omComment = OM_FACTORY.createOMComment(OM_FACTORY.createOMDocument(), content); return new BXMLItem(omComment); }
/** * Serialize given comment text list to OMComment Nodes and add to the definition * * @param definitions OMElement Structure for the configuration * @param commentsList List of Comment Texts */ private static void serializeComments(OMElement definitions, List<String> commentsList) { for (String comment : commentsList) { OMComment commentNode = fac.createOMComment(definitions, "comment"); commentNode.setValue(comment); definitions.addChild(commentNode); } }
/** * Serialize String Comment entries from a List * * @param parent OMElement to be updated * @param m Comment mediator instance which contains comment information */ protected OMElement serializeComments(OMElement parent, Mediator m) { OMComment commendNode = fac.createOMComment(parent, "comment"); commendNode.setValue(((CommentMediator) m).getCommentText()); parent.addChild(commendNode); return parent; } }
public <X extends Base> X addComment(String value) { OMComment comment = this.factory.createOMComment(null, value); if (this.getOMDocumentElement() != null) { this.getOMDocumentElement().insertSiblingBefore(comment); } else { this.addChild(comment); } return (X)this; }
public Object clone() { Document<T> doc = ((FOMFactory)factory).newDocument(); OMDocument omdoc = (OMDocument)doc; for (Iterator i = getChildren(); i.hasNext();) { OMNode node = (OMNode)i.next(); switch (node.getType()) { case OMNode.COMMENT_NODE: OMComment comment = (OMComment)node; factory.createOMComment(omdoc, comment.getValue()); break; // TODO: Decide what to do with this code; it will no longer work in Axiom 1.2.14 (because of AXIOM-437). // On the other hand, since we filter out DTDs, this code is never triggered. // case OMNode.DTD_NODE: // OMDocType doctype = (OMDocType)node; // factory.createOMDocType(omdoc, doctype.getValue()); // break; case OMNode.ELEMENT_NODE: Element el = (Element)node; omdoc.addChild((OMNode)el.clone()); break; case OMNode.PI_NODE: OMProcessingInstruction pi = (OMProcessingInstruction)node; factory.createOMProcessingInstruction(omdoc, pi.getTarget(), pi.getValue()); break; } } return doc; }
MetadataSupport.om_factory.createOMComment(site_ele, "Patient ID allocation service to use with this site"); OMElement pida_ele = MetadataSupport.om_factory.createOMElement("PidAllocateEndpoint", null); pida_ele.setText(s.pidAllocateURI);
} else if (node.getType() == OMNode.COMMENT_NODE) { OMComment comment = (OMComment)node; factory.createOMComment(dest, comment.getValue()); } else if (node.getType() == OMNode.PI_NODE) { OMProcessingInstruction pi = (OMProcessingInstruction)node;
OMComment newComment = this.factory.createOMComment(this, importedComment.getValue()); DocumentImpl doc;