public ConnectorDescriptorImpl(String descriptorName, Node node) { super(descriptorName); this.model = node; addDefaultNamespaces(); }
/** * Adds the default namespaces as defined in the specification * @return the current instance of <code>ConnectorDescriptor</code> */ public ConnectorDescriptor addDefaultNamespaces() { addNamespace("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); addNamespace("xsi:schemaLocation", "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"); addNamespace("xmlns", "http://java.sun.com/xml/ns/j2ee"); return this; }
/** * If not already created, a new <code>icon</code> element will be created and returned. * Otherwise, the first existing <code>icon</code> element will be returned. * @return the instance defined for the element <code>icon</code> */ public IconType<ConnectorDescriptor> getOrCreateIcon() { List<Node> nodeList = model.get("icon"); if (nodeList != null && nodeList.size() > 0) { return new IconTypeImpl<ConnectorDescriptor>(this, "icon", model, nodeList.get(0)); } return createIcon(); }
/** * If not already created, a new <code>icon</code> element will be created and returned. * Otherwise, the first existing <code>icon</code> element will be returned. * @return the instance defined for the element <code>icon</code> */ public IconType<ConnectorDescriptor> getOrCreateIcon() { List<Node> nodeList = model.get("icon"); if (nodeList != null && nodeList.size() > 0) { return new IconTypeImpl<ConnectorDescriptor>(this, "icon", model, nodeList.get(0)); } return createIcon(); }
public ConnectorDescriptorImpl(String descriptorName, Node node) { super(descriptorName); this.model = node; addDefaultNamespaces(); }
/** * Adds the default namespaces as defined in the specification * @return the current instance of <code>ConnectorDescriptor</code> */ public ConnectorDescriptor addDefaultNamespaces() { addNamespace("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); addNamespace("xsi:schemaLocation", "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"); addNamespace("xmlns", "http://java.sun.com/xml/ns/j2ee"); return this; }
/** * If not already created, a new <code>icon</code> element will be created and returned. * Otherwise, the first existing <code>icon</code> element will be returned. * @return the instance defined for the element <code>icon</code> */ public IconType<ConnectorDescriptor> getOrCreateIcon() { List<Node> nodeList = model.get("icon"); if (nodeList != null && nodeList.size() > 0) { return new IconTypeImpl<ConnectorDescriptor>(this, "icon", model, nodeList.get(0)); } return createIcon(); }
public ConnectorDescriptorImpl(String descriptorName, Node node) { super(descriptorName); this.model = node; addDefaultNamespaces(); }
/** * Adds the default namespaces as defined in the specification * @return the current instance of <code>ConnectorDescriptor</code> */ public ConnectorDescriptor addDefaultNamespaces() { addNamespace("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); addNamespace("xsi:schemaLocation", "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"); addNamespace("xmlns", "http://java.sun.com/xml/ns/j2ee"); return this; }
/** * If not already created, a new <code>icon</code> element will be created and returned. * Otherwise, the first existing <code>icon</code> element will be returned. * @return the instance defined for the element <code>icon</code> */ public IconType<ConnectorDescriptor> getOrCreateIcon() { List<Node> nodeList = model.get("icon"); if (nodeList != null && nodeList.size() > 0) { return new IconTypeImpl<ConnectorDescriptor>(this, "icon", model, nodeList.get(0)); } return createIcon(); }
public ConnectorDescriptorImpl(String descriptorName, Node node) { super(descriptorName); this.model = node; addDefaultNamespaces(); }
/** * Adds the default namespaces as defined in the specification * @return the current instance of <code>ConnectorDescriptor</code> */ public ConnectorDescriptor addDefaultNamespaces() { addNamespace("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); addNamespace("xsi:schemaLocation", "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"); addNamespace("xmlns", "http://java.sun.com/xml/ns/j2ee"); return this; }