use of org.glassfish.web.deployment.runtime.WebProperty in project Payara by payara.
the class DefaultHelperNode method writeDescriptor.
/**
* write the descriptor class to a DOM tree and return it
*
* @param parent node for the DOM tree
* @param nodeName node name
* @param descriptor the descriptor to write
* @return the DOM tree top node
*/
@Override
public Node writeDescriptor(Node parent, String nodeName, DefaultHelper descriptor) {
Element defaultHelper = (Element) super.writeDescriptor(parent, nodeName, descriptor);
// property*
WebProperty[] properties = descriptor.getWebProperty();
if (properties.length > 0) {
WebPropertyNode wpn = new WebPropertyNode();
wpn.writeDescriptor(defaultHelper, RuntimeTagNames.PROPERTY, properties);
}
// name, class-name attribute
setAttribute(defaultHelper, RuntimeTagNames.NAME, (String) descriptor.getAttributeValue(DefaultHelper.NAME));
return defaultHelper;
}
Aggregations