return str.toString();
}
public PlanNode getDescriptionProperties() {
PlanNode props = null;
if(descriptor.isElement()) {
props = new PlanNode("ADD ELEMENT"); //$NON-NLS-1$
} else {
props = new PlanNode("ADD ATTRIBUTE"); //$NON-NLS-1$
}
props.addProperty(PROP_TAG, this.descriptor.getName());
if(descriptor.isOptional()) {
props.addProperty(PROP_OPTIONAL, ""+descriptor.isOptional()); //$NON-NLS-1$
}
if(this.symbol != null) {
props.addProperty(PROP_DATA_COL, this.symbol.toString());
}
if(descriptor.getNamespacePrefix() != null) {
props.addProperty(PROP_NAMESPACE, descriptor.getNamespacePrefix());
}
Properties namespaceDeclarations = descriptor.getNamespaceURIs();
if(namespaceDeclarations != null) {
List<String> nsDecl = new ArrayList<String>(namespaceDeclarations.size());
Enumeration e = namespaceDeclarations.propertyNames();
while (e.hasMoreElements()){
String prefix = (String)e.nextElement();
String ns = namespaceDeclarations.getProperty(prefix);
nsDecl.add(prefix + "=\"" + ns + "\""); //$NON-NLS-1$ //$NON-NLS-2$
}
props.addProperty(PROP_NAMESPACE_DECL, nsDecl);
}
if(descriptor.getDefaultValue() != null) {
props.addProperty(PROP_DEFAULT, descriptor.getDefaultValue());
}
return props;
}