Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
|
public int | addElementProperty(ElementProperty value)
return addElementProperty(value, true);
|
public int | addElementProperty(ElementProperty value, boolean overwrite)
ElementProperty old = getElementPropertyByName(value.getName());
if(old != null) {
throw new ConfigException(StringManager.getManager(DasConfig.class).getString("cannotAddDuplicate", "ElementProperty"));
}
return this.addValue(ELEMENT_PROPERTY, value, overwrite);
|
public void | dump(java.lang.StringBuffer str, java.lang.String indent)
String s;
Object o;
org.netbeans.modules.schema2beans.BaseBean n;
str.append(indent);
str.append("ElementProperty["+this.sizeElementProperty()+"]"); // NOI18N
for(int i=0; i<this.sizeElementProperty(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getElementProperty(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(ELEMENT_PROPERTY, i, str, indent);
}
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("DasConfig\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public java.lang.String | getAdminSessionTimeoutInMinutes()Getter for AdminSessionTimeoutInMinutes of the Element das-config
return getAttributeValue(ServerTags.ADMIN_SESSION_TIMEOUT_IN_MINUTES);
|
public java.lang.String | getAutodeployDir()Getter for AutodeployDir of the Element das-config
return getAttributeValue(ServerTags.AUTODEPLOY_DIR);
|
public java.lang.String | getAutodeployPollingIntervalInSeconds()Getter for AutodeployPollingIntervalInSeconds of the Element das-config
return getAttributeValue(ServerTags.AUTODEPLOY_POLLING_INTERVAL_IN_SECONDS);
|
public static java.lang.String | getDefaultAdminSessionTimeoutInMinutes()Get the default value of AdminSessionTimeoutInMinutes from dtd
return "60".trim();
|
public static java.lang.String | getDefaultAttributeValue(java.lang.String attr)
if(attr == null) return null;
attr = attr.trim();
if(attr.equals(ServerTags.DYNAMIC_RELOAD_ENABLED)) return "false".trim();
if(attr.equals(ServerTags.DYNAMIC_RELOAD_POLL_INTERVAL_IN_SECONDS)) return "2".trim();
if(attr.equals(ServerTags.AUTODEPLOY_ENABLED)) return "false".trim();
if(attr.equals(ServerTags.AUTODEPLOY_POLLING_INTERVAL_IN_SECONDS)) return "2".trim();
if(attr.equals(ServerTags.AUTODEPLOY_DIR)) return "autodeploy".trim();
if(attr.equals(ServerTags.AUTODEPLOY_VERIFIER_ENABLED)) return "false".trim();
if(attr.equals(ServerTags.AUTODEPLOY_JSP_PRECOMPILATION_ENABLED)) return "false".trim();
if(attr.equals(ServerTags.DEPLOY_XML_VALIDATION)) return "full".trim();
if(attr.equals(ServerTags.ADMIN_SESSION_TIMEOUT_IN_MINUTES)) return "60".trim();
return null;
|
public static java.lang.String | getDefaultAutodeployDir()Get the default value of AutodeployDir from dtd
return "autodeploy".trim();
|
public static java.lang.String | getDefaultAutodeployEnabled()Get the default value of AutodeployEnabled from dtd
return "false".trim();
|
public static java.lang.String | getDefaultAutodeployJspPrecompilationEnabled()Get the default value of AutodeployJspPrecompilationEnabled from dtd
return "false".trim();
|
public static java.lang.String | getDefaultAutodeployPollingIntervalInSeconds()Get the default value of AutodeployPollingIntervalInSeconds from dtd
return "2".trim();
|
public static java.lang.String | getDefaultAutodeployVerifierEnabled()Get the default value of AutodeployVerifierEnabled from dtd
return "false".trim();
|
public static java.lang.String | getDefaultDeployXmlValidation()Get the default value of DeployXmlValidation from dtd
return "full".trim();
|
public static java.lang.String | getDefaultDynamicReloadEnabled()Get the default value of DynamicReloadEnabled from dtd
return "false".trim();
|
public static java.lang.String | getDefaultDynamicReloadPollIntervalInSeconds()Get the default value of DynamicReloadPollIntervalInSeconds from dtd
return "2".trim();
|
public java.lang.String | getDeployXmlValidation()Getter for DeployXmlValidation of the Element das-config
return getAttributeValue(ServerTags.DEPLOY_XML_VALIDATION);
|
public java.lang.String | getDynamicReloadPollIntervalInSeconds()Getter for DynamicReloadPollIntervalInSeconds of the Element das-config
return getAttributeValue(ServerTags.DYNAMIC_RELOAD_POLL_INTERVAL_IN_SECONDS);
|
public ElementProperty | getElementProperty(int index)
return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
|
public ElementProperty[] | getElementProperty()
return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
|
public ElementProperty | getElementPropertyByName(java.lang.String id)
if (null != id) { id = id.trim(); }
ElementProperty[] o = getElementProperty();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
return o[i];
}
}
return null;
|
protected java.lang.String | getRelativeXPath()get the xpath representation for this element
returns something like abc[@name='value'] or abc
depending on the type of the bean
String ret = null;
ret = "das-config";
return (null != ret ? ret.trim() : null);
|
void | initialize(int options)
|
public boolean | isAutodeployEnabled()Getter for AutodeployEnabled of the Element das-config
return toBoolean(getAttributeValue(ServerTags.AUTODEPLOY_ENABLED));
|
public boolean | isAutodeployJspPrecompilationEnabled()Getter for AutodeployJspPrecompilationEnabled of the Element das-config
return toBoolean(getAttributeValue(ServerTags.AUTODEPLOY_JSP_PRECOMPILATION_ENABLED));
|
public boolean | isAutodeployVerifierEnabled()Getter for AutodeployVerifierEnabled of the Element das-config
return toBoolean(getAttributeValue(ServerTags.AUTODEPLOY_VERIFIER_ENABLED));
|
public boolean | isDynamicReloadEnabled()Getter for DynamicReloadEnabled of the Element das-config
return toBoolean(getAttributeValue(ServerTags.DYNAMIC_RELOAD_ENABLED));
|
public ElementProperty | newElementProperty()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new ElementProperty();
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public int | removeElementProperty(ElementProperty value)
return this.removeValue(ELEMENT_PROPERTY, value);
|
public int | removeElementProperty(ElementProperty value, boolean overwrite)
return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
|
public void | setAdminSessionTimeoutInMinutes(java.lang.String v, boolean overwrite)Modify the AdminSessionTimeoutInMinutes of the Element das-config
setAttributeValue(ServerTags.ADMIN_SESSION_TIMEOUT_IN_MINUTES, v, overwrite);
|
public void | setAdminSessionTimeoutInMinutes(java.lang.String v)Modify the AdminSessionTimeoutInMinutes of the Element das-config
setAttributeValue(ServerTags.ADMIN_SESSION_TIMEOUT_IN_MINUTES, v);
|
public void | setAutodeployDir(java.lang.String v, boolean overwrite)Modify the AutodeployDir of the Element das-config
setAttributeValue(ServerTags.AUTODEPLOY_DIR, v, overwrite);
|
public void | setAutodeployDir(java.lang.String v)Modify the AutodeployDir of the Element das-config
setAttributeValue(ServerTags.AUTODEPLOY_DIR, v);
|
public void | setAutodeployEnabled(boolean v, boolean overwrite)Modify the AutodeployEnabled of the Element das-config
setAttributeValue(ServerTags.AUTODEPLOY_ENABLED, ""+(v==true), overwrite);
|
public void | setAutodeployEnabled(boolean v)Modify the AutodeployEnabled of the Element das-config
setAttributeValue(ServerTags.AUTODEPLOY_ENABLED, ""+(v==true));
|
public void | setAutodeployJspPrecompilationEnabled(boolean v, boolean overwrite)Modify the AutodeployJspPrecompilationEnabled of the Element das-config
setAttributeValue(ServerTags.AUTODEPLOY_JSP_PRECOMPILATION_ENABLED, ""+(v==true), overwrite);
|
public void | setAutodeployJspPrecompilationEnabled(boolean v)Modify the AutodeployJspPrecompilationEnabled of the Element das-config
setAttributeValue(ServerTags.AUTODEPLOY_JSP_PRECOMPILATION_ENABLED, ""+(v==true));
|
public void | setAutodeployPollingIntervalInSeconds(java.lang.String v, boolean overwrite)Modify the AutodeployPollingIntervalInSeconds of the Element das-config
setAttributeValue(ServerTags.AUTODEPLOY_POLLING_INTERVAL_IN_SECONDS, v, overwrite);
|
public void | setAutodeployPollingIntervalInSeconds(java.lang.String v)Modify the AutodeployPollingIntervalInSeconds of the Element das-config
setAttributeValue(ServerTags.AUTODEPLOY_POLLING_INTERVAL_IN_SECONDS, v);
|
public void | setAutodeployVerifierEnabled(boolean v, boolean overwrite)Modify the AutodeployVerifierEnabled of the Element das-config
setAttributeValue(ServerTags.AUTODEPLOY_VERIFIER_ENABLED, ""+(v==true), overwrite);
|
public void | setAutodeployVerifierEnabled(boolean v)Modify the AutodeployVerifierEnabled of the Element das-config
setAttributeValue(ServerTags.AUTODEPLOY_VERIFIER_ENABLED, ""+(v==true));
|
public void | setDeployXmlValidation(java.lang.String v, boolean overwrite)Modify the DeployXmlValidation of the Element das-config
setAttributeValue(ServerTags.DEPLOY_XML_VALIDATION, v, overwrite);
|
public void | setDeployXmlValidation(java.lang.String v)Modify the DeployXmlValidation of the Element das-config
setAttributeValue(ServerTags.DEPLOY_XML_VALIDATION, v);
|
public void | setDynamicReloadEnabled(boolean v, boolean overwrite)Modify the DynamicReloadEnabled of the Element das-config
setAttributeValue(ServerTags.DYNAMIC_RELOAD_ENABLED, ""+(v==true), overwrite);
|
public void | setDynamicReloadEnabled(boolean v)Modify the DynamicReloadEnabled of the Element das-config
setAttributeValue(ServerTags.DYNAMIC_RELOAD_ENABLED, ""+(v==true));
|
public void | setDynamicReloadPollIntervalInSeconds(java.lang.String v, boolean overwrite)Modify the DynamicReloadPollIntervalInSeconds of the Element das-config
setAttributeValue(ServerTags.DYNAMIC_RELOAD_POLL_INTERVAL_IN_SECONDS, v, overwrite);
|
public void | setDynamicReloadPollIntervalInSeconds(java.lang.String v)Modify the DynamicReloadPollIntervalInSeconds of the Element das-config
setAttributeValue(ServerTags.DYNAMIC_RELOAD_POLL_INTERVAL_IN_SECONDS, v);
|
public void | setElementProperty(ElementProperty[] value)
this.setValue(ELEMENT_PROPERTY, value);
|
public int | sizeElementProperty()
return this.size(ELEMENT_PROPERTY);
|
public void | validate()
|