Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
|
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("Security"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getSecurity();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(SECURITY, 0, str, indent);
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("TargetServer\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public java.lang.String | getAddress()Getter for Address of the Element target-server
return getAttributeValue(ClientTags.ADDRESS);
|
public static java.lang.String | getDefaultAttributeValue(java.lang.String attr)
if(attr == null) return null;
attr = attr.trim();
return null;
|
public java.lang.String | getDescription()Return the Description of the Element target-server
return (String) getValue(ClientTags.DESCRIPTION);
|
public java.lang.String | getName()Getter for Name of the Element target-server
return getAttributeValue(ClientTags.NAME);
|
public java.lang.String | getPort()Getter for Port of the Element target-server
return getAttributeValue(ClientTags.PORT);
|
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 = "target-server" + (canHaveSiblings() ? "[@name='" + getAttributeValue("name") +"']" : "") ;
return (null != ret ? ret.trim() : null);
|
public Security | getSecurity()
return (Security)this.getValue(SECURITY);
|
void | initialize(int options)
|
public Security | newSecurity()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new Security();
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public void | setAddress(java.lang.String v, boolean overwrite)Modify the Address of the Element target-server
setAttributeValue(ClientTags.ADDRESS, v, overwrite);
|
public void | setAddress(java.lang.String v)Modify the Address of the Element target-server
setAttributeValue(ClientTags.ADDRESS, v);
|
public void | setDescription(java.lang.String v)Modify the Description of the Element target-server
setValue(ClientTags.DESCRIPTION, (null != v ? v.trim() : null));
|
public void | setName(java.lang.String v)Modify the Name of the Element target-server
setAttributeValue(ClientTags.NAME, v);
|
public void | setName(java.lang.String v, boolean overwrite)Modify the Name of the Element target-server
setAttributeValue(ClientTags.NAME, v, overwrite);
|
public void | setPort(java.lang.String v, boolean overwrite)Modify the Port of the Element target-server
setAttributeValue(ClientTags.PORT, v, overwrite);
|
public void | setPort(java.lang.String v)Modify the Port of the Element target-server
setAttributeValue(ClientTags.PORT, v);
|
public void | setSecurity(Security value)
this.setValue(SECURITY, value);
|
public void | validate()
|