public AttrImpl(DocumentImpl ownerDocument, String localName, OMNamespace ns, String value, OMFactory factory) { super(ownerDocument, factory); this.attrName = localName; this.attrValue = new TextImpl(ownerDocument, value, factory); this.namespace = (NamespaceImpl) ns; }
/** * Create OMText node that is a copy of the source text node * @param parent * @param source * @return */ public OMText createOMText(OMContainer parent, OMText source) { return new TextImpl(parent, (TextImpl) source, this); }
/** * Creates a new OMDOM Text node with the given datahandler and the given MTOM optimization * configuration and returns it. * * @see org.apache.axiom.om.OMFactory#createOMText(Object, boolean) */ public OMText createOMText(Object dataHandler, boolean optimize) { return new TextImpl(this.document, dataHandler, optimize, this); }
public OMText createOMText(OMContainer parent, QName text, int type) { return new TextImpl(parent, text, type, this); }
public AttrImpl(DocumentImpl ownerDocument, String name, String value, OMFactory factory) { super(ownerDocument, factory); this.attrName = name; this.attrValue = new TextImpl(ownerDocument, value, factory); }
/** * Creates a OMDOM Text node carrying the given value. * * @see org.apache.axiom.om.OMFactory#createOMText(String) */ public OMText createOMText(String s) { return new TextImpl(this.document, s, this); }
/** * Creates a new OMDOM Text node with the value of the given text value along with the MTOM * optimization parameters and returns it. * * @see org.apache.axiom.om.OMFactory#createOMText(String, String, boolean) */ public OMText createOMText(String text, String mimeType, boolean optimize) { return new TextImpl(this.document, text, mimeType, optimize, this); }
public Text createTextNode(String value) { return new TextImpl(this, value, this.factory); }
public OMText createOMText(OMContainer parent, QName text) { return new TextImpl(parent, text, this); }
public OMText createOMText(String contentID, OMContainer parent, OMXMLParserWrapper builder) { TextImpl text = new TextImpl(contentID, parent, builder, this); parent.addChild(text); return text; }
public Node cloneNode(boolean deep) { TextImpl textImpl = new TextImpl(this.textValue.toString(), this.factory); textImpl.setOwnerDocument(this.ownerNode); return textImpl; }
/** * Creates a Character node of the given type. * * @see org.apache.axiom.om.OMFactory#createOMText(String, int) */ public OMText createOMText(String text, int type) { switch (type) { case OMNode.TEXT_NODE: return new TextImpl(this.document, text, this); default: throw new OMDOMException("Only Text nodes are supported right now"); } }
/** * Creates a new OMDOM Text node with the given value and appends it to the given parent * element. * * @see org.apache.axiom.om.OMFactory#createOMText( org.apache.axiom.om.OMElement,String) */ public OMText createOMText(OMContainer parent, String text) { ElementImpl parentElem = (ElementImpl) parent; TextImpl txt = new TextImpl((DocumentImpl) parentElem .getOwnerDocument(), text, this); parentElem.addChild(txt); return txt; }
/** * Creates an OMDOM Text node, adds it to the give parent element and returns it. * * @see org.apache.axiom.om.OMFactory#createOMText(OMContainer, String, * String, boolean) */ public OMText createOMText(OMContainer parent, String s, String mimeType, boolean optimize) { TextImpl text = new TextImpl((DocumentImpl) ((ElementImpl) parent) .getOwnerDocument(), s, mimeType, optimize, this); parent.addChild(text); return text; }
public OMText createOMText(OMContainer parent, char[] charArary, int type) { ElementImpl parentElem = (ElementImpl) parent; TextImpl txt = new TextImpl((DocumentImpl) parentElem .getOwnerDocument(), charArary, this); parentElem.addChild(txt); return txt; }
public Node cloneNode(boolean deep) { AttrImpl clone = (AttrImpl) super.cloneNode(deep); if (clone.attrValue == null) { // Need to break the association w/ original kids clone.attrValue = new TextImpl(this.attrValue.toString(), factory); if (this.attrValue.nextSibling != null) { throw new UnsupportedOperationException( "Attribute value can contain only a text " + "node with out any siblings"); } } clone.isSpecified(true); return clone; }
return new BXMLItem(new TextImpl());
break; case TEXT: TextImpl text = new TextImpl(); text.setTextContent(((OMText) omNode).getText()); clonedNode = text;