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(AppclientModule.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("Description"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
o = this.getDescription();
str.append((o==null?"null":o.toString().trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(DESCRIPTION, 0, str, indent);
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("AppclientModule\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public static java.lang.String | getDefaultAttributeValue(java.lang.String attr)
if(attr == null) return null;
attr = attr.trim();
if(attr.equals(ServerTags.DIRECTORY_DEPLOYED)) return "false".trim();
if(attr.equals(ServerTags.JAVA_WEB_START_ENABLED)) return "true".trim();
return null;
|
public static java.lang.String | getDefaultDirectoryDeployed()Get the default value of DirectoryDeployed from dtd
return "false".trim();
|
public static java.lang.String | getDefaultJavaWebStartEnabled()Get the default value of JavaWebStartEnabled from dtd
return "true".trim();
|
public java.lang.String | getDescription()Return the Description of the Element appclient-module
return (String) getValue(ServerTags.DESCRIPTION);
|
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;
|
public java.lang.String | getLocation()Getter for Location of the Element appclient-module
return getAttributeValue(ServerTags.LOCATION);
|
public java.lang.String | getName()Getter for Name of the Element appclient-module
return getAttributeValue(ServerTags.NAME);
|
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 = "appclient-module" + (canHaveSiblings() ? "[@name='" + getAttributeValue("name") +"']" : "") ;
return (null != ret ? ret.trim() : null);
|
void | initialize(int options)
|
public boolean | isDirectoryDeployed()Getter for DirectoryDeployed of the Element appclient-module
return toBoolean(getAttributeValue(ServerTags.DIRECTORY_DEPLOYED));
|
public boolean | isJavaWebStartEnabled()Getter for JavaWebStartEnabled of the Element appclient-module
return toBoolean(getAttributeValue(ServerTags.JAVA_WEB_START_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 | setDescription(java.lang.String v)Modify the Description of the Element appclient-module
setValue(ServerTags.DESCRIPTION, (null != v ? v.trim() : null));
|
public void | setDirectoryDeployed(boolean v, boolean overwrite)Modify the DirectoryDeployed of the Element appclient-module
setAttributeValue(ServerTags.DIRECTORY_DEPLOYED, ""+(v==true), overwrite);
|
public void | setDirectoryDeployed(boolean v)Modify the DirectoryDeployed of the Element appclient-module
setAttributeValue(ServerTags.DIRECTORY_DEPLOYED, ""+(v==true));
|
public void | setElementProperty(ElementProperty[] value)
this.setValue(ELEMENT_PROPERTY, value);
|
public void | setJavaWebStartEnabled(boolean v, boolean overwrite)Modify the JavaWebStartEnabled of the Element appclient-module
setAttributeValue(ServerTags.JAVA_WEB_START_ENABLED, ""+(v==true), overwrite);
|
public void | setJavaWebStartEnabled(boolean v)Modify the JavaWebStartEnabled of the Element appclient-module
setAttributeValue(ServerTags.JAVA_WEB_START_ENABLED, ""+(v==true));
|
public void | setLocation(java.lang.String v, boolean overwrite)Modify the Location of the Element appclient-module
setAttributeValue(ServerTags.LOCATION, v, overwrite);
|
public void | setLocation(java.lang.String v)Modify the Location of the Element appclient-module
setAttributeValue(ServerTags.LOCATION, v);
|
public void | setName(java.lang.String v, boolean overwrite)Modify the Name of the Element appclient-module
setAttributeValue(ServerTags.NAME, v, overwrite);
|
public void | setName(java.lang.String v)Modify the Name of the Element appclient-module
setAttributeValue(ServerTags.NAME, v);
|
public int | sizeElementProperty()
return this.size(ELEMENT_PROPERTY);
|
public void | validate()
|