FileDocCategorySizeDatePackage
MessageSecurityConfig.javaAPI DocGlassfish v2 API9072Fri May 26 10:47:10 BST 2006com.sun.enterprise.config.serverbeans

MessageSecurityConfig

public class MessageSecurityConfig extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class MessageSecurityConfig matches the DTD element message-security-config

Fields Summary
static Vector
comparators
private static final org.netbeans.modules.schema2beans.Version
runtimeVersion
public static final String
PROVIDER_CONFIG
Constructors Summary
public MessageSecurityConfig()


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

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(1);
		this.createProperty("provider-config", PROVIDER_CONFIG, 
			Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			ProviderConfig.class);
		this.createAttribute(PROVIDER_CONFIG, "provider-id", "ProviderId", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.createAttribute(PROVIDER_CONFIG, "provider-type", "ProviderType", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.createAttribute(PROVIDER_CONFIG, "class-name", "ClassName", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddProviderConfig(ProviderConfig value)

		return addProviderConfig(value, true);
	
public intaddProviderConfig(ProviderConfig value, boolean overwrite)

		ProviderConfig old = getProviderConfigByProviderId(value.getProviderId());
		if(old != null) {
			throw new ConfigException(StringManager.getManager(MessageSecurityConfig.class).getString("cannotAddDuplicate",  "ProviderConfig"));
		}
		return this.addValue(PROVIDER_CONFIG, 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("ProviderConfig["+this.sizeProviderConfig()+"]");	// NOI18N
		for(int i=0; i<this.sizeProviderConfig(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			n = (org.netbeans.modules.schema2beans.BaseBean) this.getProviderConfig(i);
			if (n != null)
				n.dump(str, indent + "\t");	// NOI18N
			else
				str.append(indent+"\tnull");	// NOI18N
			this.dumpAttributes(PROVIDER_CONFIG, i, str, indent);
		}

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("MessageSecurityConfig\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetAuthLayer()
Getter for AuthLayer of the Element message-security-config

return
the AuthLayer of the Element message-security-config

		return getAttributeValue(ServerTags.AUTH_LAYER);
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
	return null;
	
public java.lang.StringgetDefaultClientProvider()
Getter for DefaultClientProvider of the Element message-security-config

return
the DefaultClientProvider of the Element message-security-config

			return getAttributeValue(ServerTags.DEFAULT_CLIENT_PROVIDER);
	
public java.lang.StringgetDefaultProvider()
Getter for DefaultProvider of the Element message-security-config

return
the DefaultProvider of the Element message-security-config

			return getAttributeValue(ServerTags.DEFAULT_PROVIDER);
	
public ProviderConfiggetProviderConfig(int index)

		return (ProviderConfig)this.getValue(PROVIDER_CONFIG, index);
	
public ProviderConfig[]getProviderConfig()

		return (ProviderConfig[])this.getValues(PROVIDER_CONFIG);
	
public ProviderConfiggetProviderConfigByProviderId(java.lang.String id)

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

	 for (int i=0; i < o.length; i++) {
	     if(o[i].getAttributeValue(Common.convertName(ServerTags.PROVIDER_ID)).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 = "message-security-config" + (canHaveSiblings() ? "[@auth-layer='" + getAttributeValue("auth-layer") +"']" : "") ;
	    return (null != ret ? ret.trim() : null);
	
voidinitialize(int options)


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

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

		comparators.remove(c);
	
public intremoveProviderConfig(ProviderConfig value)

		return this.removeValue(PROVIDER_CONFIG, value);
	
public intremoveProviderConfig(ProviderConfig value, boolean overwrite)

		return this.removeValue(PROVIDER_CONFIG, value, overwrite);
	
public voidsetAuthLayer(java.lang.String v, boolean overwrite)
Modify the AuthLayer of the Element message-security-config

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

		setAttributeValue(ServerTags.AUTH_LAYER, v, overwrite);
	
public voidsetAuthLayer(java.lang.String v)
Modify the AuthLayer of the Element message-security-config

param
v the new value

		setAttributeValue(ServerTags.AUTH_LAYER, v);
	
public voidsetDefaultClientProvider(java.lang.String v, boolean overwrite)
Modify the DefaultClientProvider of the Element message-security-config

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

		setAttributeValue(ServerTags.DEFAULT_CLIENT_PROVIDER, v, overwrite);
	
public voidsetDefaultClientProvider(java.lang.String v)
Modify the DefaultClientProvider of the Element message-security-config

param
v the new value

		setAttributeValue(ServerTags.DEFAULT_CLIENT_PROVIDER, v);
	
public voidsetDefaultProvider(java.lang.String v, boolean overwrite)
Modify the DefaultProvider of the Element message-security-config

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

		setAttributeValue(ServerTags.DEFAULT_PROVIDER, v, overwrite);
	
public voidsetDefaultProvider(java.lang.String v)
Modify the DefaultProvider of the Element message-security-config

param
v the new value

		setAttributeValue(ServerTags.DEFAULT_PROVIDER, v);
	
public voidsetProviderConfig(ProviderConfig[] value)

		this.setValue(PROVIDER_CONFIG, value);
	
public intsizeProviderConfig()

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