org.jopendocument.dom
Class ChildCreator
java.lang.Object
org.jopendocument.dom.ChildCreator
public class ChildCreator
- extends Object
A helper to create children in the schema order.
- Author:
- Sylvain CUAZ
|
Constructor Summary |
|
ChildCreator(org.jdom.Element content,
org.jdom.Element... children)
|
protected |
ChildCreator(org.jdom.Element content,
List<org.jdom.Element> children)
|
|
Method Summary |
org.jdom.Element |
addChild(org.jdom.Namespace childNS,
String childName)
|
org.jdom.Element |
getChild(org.jdom.Namespace childNS,
String childName)
|
org.jdom.Element |
getChild(org.jdom.Namespace childNS,
String childName,
boolean create)
Return the asked child, optionally creating it. |
List<org.jdom.Element> |
getChildren()
|
org.jdom.Element |
getElement()
|
void |
setChild(org.jdom.Element elem)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChildCreator
protected ChildCreator(org.jdom.Element content,
List<org.jdom.Element> children)
ChildCreator
public ChildCreator(org.jdom.Element content,
org.jdom.Element... children)
getElement
public final org.jdom.Element getElement()
getChildren
public final List<org.jdom.Element> getChildren()
getChild
public final org.jdom.Element getChild(org.jdom.Namespace childNS,
String childName)
getChild
public final org.jdom.Element getChild(org.jdom.Namespace childNS,
String childName,
boolean create)
- Return the asked child, optionally creating it.
- Parameters:
childNS - the namespace of the child.childName - the name of the child.create - whether it should be created in case it doesn't exist.
- Returns:
- the asked child or
null if it doesn't exist and create is
false
addChild
public final org.jdom.Element addChild(org.jdom.Namespace childNS,
String childName)
setChild
public final void setChild(org.jdom.Element elem)
Copyright © 2010 jOpenDocument All Rights Reserved.