FileDocCategorySizeDatePackage
WebServiceEndpoint.javaAPI DocGlassfish v2 API13647Tue Apr 03 16:25:18 BST 2007com.sun.enterprise.config.serverbeans

WebServiceEndpoint

public class WebServiceEndpoint extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class WebServiceEndpoint matches the DTD element web-service-endpoint

Fields Summary
static Vector
comparators
private static final org.netbeans.modules.schema2beans.Version
runtimeVersion
public static final String
REGISTRY_LOCATION
public static final String
TRANSFORMATION_RULE
Constructors Summary
public WebServiceEndpoint()


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

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(2);
		this.createProperty("registry-location", REGISTRY_LOCATION, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			RegistryLocation.class);
		this.createAttribute(REGISTRY_LOCATION, "connector-resource-jndi-name", "ConnectorResourceJndiName", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.createProperty("transformation-rule", TRANSFORMATION_RULE, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			TransformationRule.class);
		this.createAttribute(TRANSFORMATION_RULE, "name", "Name", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.createAttribute(TRANSFORMATION_RULE, "enabled", "Enabled", 
						AttrProp.CDATA,
						null, "true");
		this.createAttribute(TRANSFORMATION_RULE, "apply-to", "ApplyTo", 
						AttrProp.CDATA,
						null, "request");
		this.createAttribute(TRANSFORMATION_RULE, "rule-file-location", "RuleFileLocation", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddRegistryLocation(RegistryLocation value)

		return addRegistryLocation(value, true);
	
public intaddRegistryLocation(RegistryLocation value, boolean overwrite)

		RegistryLocation old = getRegistryLocationByConnectorResourceJndiName(value.getConnectorResourceJndiName());
		if(old != null) {
			throw new ConfigException(StringManager.getManager(WebServiceEndpoint.class).getString("cannotAddDuplicate",  "RegistryLocation"));
		}
		return this.addValue(REGISTRY_LOCATION, value, overwrite);
	
public intaddTransformationRule(TransformationRule value)

		return addTransformationRule(value, true);
	
public intaddTransformationRule(TransformationRule value, boolean overwrite)

		TransformationRule old = getTransformationRuleByName(value.getName());
		if(old != null) {
			throw new ConfigException(StringManager.getManager(WebServiceEndpoint.class).getString("cannotAddDuplicate",  "TransformationRule"));
		}
		return this.addValue(TRANSFORMATION_RULE, 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("RegistryLocation["+this.sizeRegistryLocation()+"]");	// NOI18N
		for(int i=0; i<this.sizeRegistryLocation(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			n = (org.netbeans.modules.schema2beans.BaseBean) this.getRegistryLocation(i);
			if (n != null)
				n.dump(str, indent + "\t");	// NOI18N
			else
				str.append(indent+"\tnull");	// NOI18N
			this.dumpAttributes(REGISTRY_LOCATION, i, str, indent);
		}

		str.append(indent);
		str.append("TransformationRule["+this.sizeTransformationRule()+"]");	// NOI18N
		for(int i=0; i<this.sizeTransformationRule(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			n = (org.netbeans.modules.schema2beans.BaseBean) this.getTransformationRule(i);
			if (n != null)
				n.dump(str, indent + "\t");	// NOI18N
			else
				str.append(indent+"\tnull");	// NOI18N
			this.dumpAttributes(TRANSFORMATION_RULE, i, str, indent);
		}

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("WebServiceEndpoint\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
		if(attr.equals(ServerTags.MONITORING)) return "OFF".trim();
		if(attr.equals(ServerTags.MAX_HISTORY_SIZE)) return "25".trim();
		if(attr.equals(ServerTags.JBI_ENABLED)) return "false".trim();
	return null;
	
public static java.lang.StringgetDefaultJbiEnabled()
Get the default value of JbiEnabled from dtd

		return "false".trim();
	
public static java.lang.StringgetDefaultMaxHistorySize()
Get the default value of MaxHistorySize from dtd

		return "25".trim();
	
public static java.lang.StringgetDefaultMonitoring()
Get the default value of Monitoring from dtd

		return "OFF".trim();
	
public java.lang.StringgetMaxHistorySize()
Getter for MaxHistorySize of the Element web-service-endpoint

return
the MaxHistorySize of the Element web-service-endpoint

		return getAttributeValue(ServerTags.MAX_HISTORY_SIZE);
	
public java.lang.StringgetMonitoring()
Getter for Monitoring of the Element web-service-endpoint

return
the Monitoring of the Element web-service-endpoint

		return getAttributeValue(ServerTags.MONITORING);
	
public java.lang.StringgetName()
Getter for Name of the Element web-service-endpoint

return
the Name of the Element web-service-endpoint

		return getAttributeValue(ServerTags.NAME);
	
public RegistryLocationgetRegistryLocation(int index)

		return (RegistryLocation)this.getValue(REGISTRY_LOCATION, index);
	
public RegistryLocation[]getRegistryLocation()

		return (RegistryLocation[])this.getValues(REGISTRY_LOCATION);
	
public RegistryLocationgetRegistryLocationByConnectorResourceJndiName(java.lang.String id)

	 if (null != id) { id = id.trim(); }
	RegistryLocation[] o = getRegistryLocation();
	 if (o == null) return null;

	 for (int i=0; i < o.length; i++) {
	     if(o[i].getAttributeValue(Common.convertName(ServerTags.CONNECTOR_RESOURCE_JNDI_NAME)).equals(id)) {
	         return o[i];
	     }
	 }

		return null;
		
	
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 = "web-service-endpoint" + (canHaveSiblings() ? "[@name='" + getAttributeValue("name") +"']" : "") ;
	    return (null != ret ? ret.trim() : null);
	
public TransformationRulegetTransformationRule(int index)

		return (TransformationRule)this.getValue(TRANSFORMATION_RULE, index);
	
public TransformationRule[]getTransformationRule()

		return (TransformationRule[])this.getValues(TRANSFORMATION_RULE);
	
public TransformationRulegetTransformationRuleByName(java.lang.String id)

	 if (null != id) { id = id.trim(); }
	TransformationRule[] o = getTransformationRule();
	 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;
		
	
voidinitialize(int options)


	
public booleanisJbiEnabled()
Getter for JbiEnabled of the Element web-service-endpoint

return
the JbiEnabled of the Element web-service-endpoint

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

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

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

		comparators.remove(c);
	
public intremoveRegistryLocation(RegistryLocation value)

		return this.removeValue(REGISTRY_LOCATION, value);
	
public intremoveRegistryLocation(RegistryLocation value, boolean overwrite)

		return this.removeValue(REGISTRY_LOCATION, value, overwrite);
	
public intremoveTransformationRule(TransformationRule value)

		return this.removeValue(TRANSFORMATION_RULE, value);
	
public intremoveTransformationRule(TransformationRule value, boolean overwrite)

		return this.removeValue(TRANSFORMATION_RULE, value, overwrite);
	
public voidsetJbiEnabled(boolean v, boolean overwrite)
Modify the JbiEnabled of the Element web-service-endpoint

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

		setAttributeValue(ServerTags.JBI_ENABLED, ""+(v==true), overwrite);
	
public voidsetJbiEnabled(boolean v)
Modify the JbiEnabled of the Element web-service-endpoint

param
v the new value

		setAttributeValue(ServerTags.JBI_ENABLED, ""+(v==true));
	
public voidsetMaxHistorySize(java.lang.String v, boolean overwrite)
Modify the MaxHistorySize of the Element web-service-endpoint

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

		setAttributeValue(ServerTags.MAX_HISTORY_SIZE, v, overwrite);
	
public voidsetMaxHistorySize(java.lang.String v)
Modify the MaxHistorySize of the Element web-service-endpoint

param
v the new value

		setAttributeValue(ServerTags.MAX_HISTORY_SIZE, v);
	
public voidsetMonitoring(java.lang.String v, boolean overwrite)
Modify the Monitoring of the Element web-service-endpoint

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

		setAttributeValue(ServerTags.MONITORING, v, overwrite);
	
public voidsetMonitoring(java.lang.String v)
Modify the Monitoring of the Element web-service-endpoint

param
v the new value

		setAttributeValue(ServerTags.MONITORING, v);
	
public voidsetName(java.lang.String v, boolean overwrite)
Modify the Name of the Element web-service-endpoint

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 web-service-endpoint

param
v the new value

		setAttributeValue(ServerTags.NAME, v);
	
public voidsetRegistryLocation(RegistryLocation[] value)

		this.setValue(REGISTRY_LOCATION, value);
	
public voidsetTransformationRule(TransformationRule[] value)

		this.setValue(TRANSFORMATION_RULE, value);
	
public intsizeRegistryLocation()

		return this.size(REGISTRY_LOCATION);
	
public intsizeTransformationRule()

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