FileDocCategorySizeDatePackage
JmxConnector.javaAPI DocGlassfish v2 API14531Fri May 26 10:47:08 BST 2006com.sun.enterprise.config.serverbeans

JmxConnector

public class JmxConnector extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class JmxConnector matches the DTD element jmx-connector

Fields Summary
static Vector
comparators
private static final org.netbeans.modules.schema2beans.Version
runtimeVersion
public static final String
SSL
public static final String
ELEMENT_PROPERTY
Constructors Summary
public JmxConnector()


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

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(2);
		this.createProperty("ssl", SSL, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			Ssl.class);
		this.createAttribute(SSL, "cert-nickname", "CertNickname", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.createAttribute(SSL, "ssl2-enabled", "Ssl2Enabled", 
						AttrProp.CDATA,
						null, "false");
		this.createAttribute(SSL, "ssl2-ciphers", "Ssl2Ciphers", 
						AttrProp.CDATA | AttrProp.IMPLIED,
						null, null);
		this.createAttribute(SSL, "ssl3-enabled", "Ssl3Enabled", 
						AttrProp.CDATA,
						null, "true");
		this.createAttribute(SSL, "ssl3-tls-ciphers", "Ssl3TlsCiphers", 
						AttrProp.CDATA | AttrProp.IMPLIED,
						null, null);
		this.createAttribute(SSL, "tls-enabled", "TlsEnabled", 
						AttrProp.CDATA,
						null, "true");
		this.createAttribute(SSL, "tls-rollback-enabled", "TlsRollbackEnabled", 
						AttrProp.CDATA,
						null, "true");
		this.createAttribute(SSL, "client-auth-enabled", "ClientAuthEnabled", 
						AttrProp.CDATA,
						null, "false");
		this.createProperty("property", ELEMENT_PROPERTY, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			ElementProperty.class);
		this.createAttribute(ELEMENT_PROPERTY, "name", "Name", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.createAttribute(ELEMENT_PROPERTY, "value", "Value", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddElementProperty(ElementProperty value)

		return addElementProperty(value, true);
	
public intaddElementProperty(ElementProperty value, boolean overwrite)

		ElementProperty old = getElementPropertyByName(value.getName());
		if(old != null) {
			throw new ConfigException(StringManager.getManager(JmxConnector.class).getString("cannotAddDuplicate",  "ElementProperty"));
		}
		return this.addValue(ELEMENT_PROPERTY, value, overwrite);
	
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("Ssl");	// NOI18N
		n = (org.netbeans.modules.schema2beans.BaseBean) this.getSsl();
		if (n != null)
			n.dump(str, indent + "\t");	// NOI18N
		else
			str.append(indent+"\tnull");	// NOI18N
		this.dumpAttributes(SSL, 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.StringdumpBeanNode()

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

return
the Address of the Element jmx-connector

		return getAttributeValue(ServerTags.ADDRESS);
	
public java.lang.StringgetAuthRealmName()
Getter for AuthRealmName of the Element jmx-connector

return
the AuthRealmName of the Element jmx-connector

		return getAttributeValue(ServerTags.AUTH_REALM_NAME);
	
public static java.lang.StringgetDefaultAcceptAll()
Get the default value of AcceptAll from dtd

		return "false".trim();
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
		if(attr.equals(ServerTags.ENABLED)) return "true".trim();
		if(attr.equals(ServerTags.PROTOCOL)) return "rmi_jrmp".trim();
		if(attr.equals(ServerTags.ACCEPT_ALL)) return "false".trim();
		if(attr.equals(ServerTags.SECURITY_ENABLED)) return "true".trim();
	return null;
	
public static java.lang.StringgetDefaultEnabled()
Get the default value of Enabled from dtd

		return "true".trim();
	
public static java.lang.StringgetDefaultProtocol()
Get the default value of Protocol from dtd

		return "rmi_jrmp".trim();
	
public static java.lang.StringgetDefaultSecurityEnabled()
Get the default value of SecurityEnabled from dtd

		return "true".trim();
	
public ElementPropertygetElementProperty(int index)

		return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
	
public ElementProperty[]getElementProperty()

		return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
	
public ElementPropertygetElementPropertyByName(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.StringgetName()
Getter for Name of the Element jmx-connector

return
the Name of the Element jmx-connector

		return getAttributeValue(ServerTags.NAME);
	
public java.lang.StringgetPort()
Getter for Port of the Element jmx-connector

return
the Port of the Element jmx-connector

		return getAttributeValue(ServerTags.PORT);
	
public java.lang.StringgetProtocol()
Getter for Protocol of the Element jmx-connector

return
the Protocol of the Element jmx-connector

		return getAttributeValue(ServerTags.PROTOCOL);
	
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 = "jmx-connector" + (canHaveSiblings() ? "[@name='" + getAttributeValue("name") +"']" : "") ;
	    return (null != ret ? ret.trim() : null);
	
public SslgetSsl()

		return (Ssl)this.getValue(SSL);
	
voidinitialize(int options)


	
public booleanisAcceptAll()
Getter for AcceptAll of the Element jmx-connector

return
the AcceptAll of the Element jmx-connector

		return toBoolean(getAttributeValue(ServerTags.ACCEPT_ALL));
	
public booleanisEnabled()
Getter for Enabled of the Element jmx-connector

return
the Enabled of the Element jmx-connector

		return toBoolean(getAttributeValue(ServerTags.ENABLED));
	
public booleanisSecurityEnabled()
Getter for SecurityEnabled of the Element jmx-connector

return
the SecurityEnabled of the Element jmx-connector

		return toBoolean(getAttributeValue(ServerTags.SECURITY_ENABLED));
	
public ElementPropertynewElementProperty()
Create a new bean using it's default constructor. This does not add it to any bean graph.

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

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

		comparators.remove(c);
	
public intremoveElementProperty(ElementProperty value)

		return this.removeValue(ELEMENT_PROPERTY, value);
	
public intremoveElementProperty(ElementProperty value, boolean overwrite)

		return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
	
public voidsetAcceptAll(boolean v, boolean overwrite)
Modify the AcceptAll of the Element jmx-connector

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

		setAttributeValue(ServerTags.ACCEPT_ALL, ""+(v==true), overwrite);
	
public voidsetAcceptAll(boolean v)
Modify the AcceptAll of the Element jmx-connector

param
v the new value

		setAttributeValue(ServerTags.ACCEPT_ALL, ""+(v==true));
	
public voidsetAddress(java.lang.String v, boolean overwrite)
Modify the Address of the Element jmx-connector

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

		setAttributeValue(ServerTags.ADDRESS, v, overwrite);
	
public voidsetAddress(java.lang.String v)
Modify the Address of the Element jmx-connector

param
v the new value

		setAttributeValue(ServerTags.ADDRESS, v);
	
public voidsetAuthRealmName(java.lang.String v, boolean overwrite)
Modify the AuthRealmName of the Element jmx-connector

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

		setAttributeValue(ServerTags.AUTH_REALM_NAME, v, overwrite);
	
public voidsetAuthRealmName(java.lang.String v)
Modify the AuthRealmName of the Element jmx-connector

param
v the new value

		setAttributeValue(ServerTags.AUTH_REALM_NAME, v);
	
public voidsetElementProperty(ElementProperty[] value)

		this.setValue(ELEMENT_PROPERTY, value);
	
public voidsetEnabled(boolean v, boolean overwrite)
Modify the Enabled of the Element jmx-connector

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

		setAttributeValue(ServerTags.ENABLED, ""+(v==true), overwrite);
	
public voidsetEnabled(boolean v)
Modify the Enabled of the Element jmx-connector

param
v the new value

		setAttributeValue(ServerTags.ENABLED, ""+(v==true));
	
public voidsetName(java.lang.String v, boolean overwrite)
Modify the Name of the Element jmx-connector

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

		setAttributeValue(ServerTags.NAME, v, overwrite);
	
public voidsetName(java.lang.String v)
Modify the Name of the Element jmx-connector

param
v the new value

		setAttributeValue(ServerTags.NAME, v);
	
public voidsetPort(java.lang.String v, boolean overwrite)
Modify the Port of the Element jmx-connector

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

		setAttributeValue(ServerTags.PORT, v, overwrite);
	
public voidsetPort(java.lang.String v)
Modify the Port of the Element jmx-connector

param
v the new value

		setAttributeValue(ServerTags.PORT, v);
	
public voidsetProtocol(java.lang.String v, boolean overwrite)
Modify the Protocol of the Element jmx-connector

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

		setAttributeValue(ServerTags.PROTOCOL, v, overwrite);
	
public voidsetProtocol(java.lang.String v)
Modify the Protocol of the Element jmx-connector

param
v the new value

		setAttributeValue(ServerTags.PROTOCOL, v);
	
public voidsetSecurityEnabled(boolean v, boolean overwrite)
Modify the SecurityEnabled of the Element jmx-connector

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

		setAttributeValue(ServerTags.SECURITY_ENABLED, ""+(v==true), overwrite);
	
public voidsetSecurityEnabled(boolean v)
Modify the SecurityEnabled of the Element jmx-connector

param
v the new value

		setAttributeValue(ServerTags.SECURITY_ENABLED, ""+(v==true));
	
public voidsetSsl(Ssl value)

		this.setValue(SSL, value);
	
public intsizeElementProperty()

		return this.size(ELEMENT_PROPERTY);
	
public voidvalidate()