FileDocCategorySizeDatePackage
TargetServer.javaAPI DocGlassfish v2 API7967Fri May 04 22:31:18 BST 2007com.sun.enterprise.config.clientbeans

TargetServer

public class TargetServer extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class TargetServer matches the DTD element target-server

Fields Summary
static Vector
comparators
private static final org.netbeans.modules.schema2beans.Version
runtimeVersion
public static final String
DESCRIPTION
public static final String
SECURITY
Constructors Summary
public TargetServer()


	  
		this(Common.USE_DEFAULT_VALUES);
	
public TargetServer(int options)

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(2);
		this.createProperty("description", DESCRIPTION, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("security", SECURITY, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			Security.class);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public voiddump(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.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("TargetServer\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetAddress()
Getter for Address of the Element target-server

return
the Address of the Element target-server

		return getAttributeValue(ClientTags.ADDRESS);
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
	return null;
	
public java.lang.StringgetDescription()
Return the Description of the Element target-server

		return (String) getValue(ClientTags.DESCRIPTION);
	
public java.lang.StringgetName()
Getter for Name of the Element target-server

return
the Name of the Element target-server

		return getAttributeValue(ClientTags.NAME);
	
public java.lang.StringgetPort()
Getter for Port of the Element target-server

return
the Port of the Element target-server

		return getAttributeValue(ClientTags.PORT);
	
protected java.lang.StringgetRelativeXPath()
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 SecuritygetSecurity()

		return (Security)this.getValue(SECURITY);
	
voidinitialize(int options)


	
public SecuritynewSecurity()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new Security();
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public voidsetAddress(java.lang.String v, boolean overwrite)
Modify the Address of the Element target-server

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ClientTags.ADDRESS, v, overwrite);
	
public voidsetAddress(java.lang.String v)
Modify the Address of the Element target-server

param
v the new value

		setAttributeValue(ClientTags.ADDRESS, v);
	
public voidsetDescription(java.lang.String v)
Modify the Description of the Element target-server

param
v the new value

		setValue(ClientTags.DESCRIPTION, (null != v ? v.trim() : null));
		
public voidsetName(java.lang.String v)
Modify the Name of the Element target-server

param
v the new value

		setAttributeValue(ClientTags.NAME, v);
	
public voidsetName(java.lang.String v, boolean overwrite)
Modify the Name of the Element target-server

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ClientTags.NAME, v, overwrite);
	
public voidsetPort(java.lang.String v, boolean overwrite)
Modify the Port of the Element target-server

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ClientTags.PORT, v, overwrite);
	
public voidsetPort(java.lang.String v)
Modify the Port of the Element target-server

param
v the new value

		setAttributeValue(ClientTags.PORT, v);
	
public voidsetSecurity(Security value)

		this.setValue(SECURITY, value);
	
public voidvalidate()