public void addPropertyName(QualifiedName name) {
        Assert.isNotNull(name);
        String nsName = name.getQualifier();
        Assert.isTrue(!"".equals(nsName)); //$NON-NLS-1$
        String localName = name.getLocalName();
        Assert.isNotNull(localName);
        Assert.isTrue(!localName.equals("")); //$NON-NLS-1$
        Document document = root.getOwnerDocument();
        Element element = document.createElement(localName);
        declareNS(element, null, nsName);
        root.appendChild(element);
    }
public void addPropertyName(QualifiedName name) {
        Assert.isNotNull(name);
        String nsName = name.getQualifier();
        Assert.isTrue(!"".equals(nsName)); 
        String localName = name.getLocalName();
        Assert.isNotNull(localName);
        Assert.isTrue(!localName.equals("")); 
        Document document = root.getOwnerDocument();
        Element element = document.createElement(localName);
        declareNS(element, null, nsName);
        root.appendChild(element);
    }
public void addPropertyName ( QualifiedName name ) { Assert . isNotNull ( name ) ; String nsName = name . getQualifier ( ) ; Assert . isTrue ( ! "" . equals ( nsName ) ) ; //$NON-NLS-1$ String localName = name . getLocalName ( ) ; Assert . isNotNull ( localName ) ; Assert . isTrue ( ! localName . equals ( "" ) ) ; //$NON-NLS-1$ Document document = root . getOwnerDocument ( ) ; Element element = document . createElement ( localName ) ; declareNS ( element , null , nsName ) ; root . appendChild ( element ) ; }
Creates a new element with the given name and adds it to this prop.
The name must not be <code>null</code> and its qualifier and local
name must not be <code>null</code> and must not be the empty string.

@param name the <code>QualifiedName</code> of the property to add
Creates a new element with the given name and adds it to this prop . The name must not be <code > null< / code > and its qualifier and local name must not be <code > null< / code > and must not be the empty string .