FileDocCategorySizeDatePackage
MessageSecurity.javaAPI DocGlassfish v2 API10837Fri May 04 22:34:38 BST 2007com.sun.enterprise.tools.common.dd

MessageSecurity

public class MessageSecurity extends org.netbeans.modules.schema2beans.BaseBean
This generated bean class MessageSecurity matches the schema element 'message-security'. The root bean class is SunEjbJar Generated on Tue Aug 08 09:56:25 PDT 2006
Generated

Fields Summary
static Vector
comparators
private static final org.netbeans.modules.schema2beans.Version
runtimeVersion
public static final String
MESSAGE
public static final String
REQUEST_PROTECTION
public static final String
REQUESTPROTECTIONAUTHSOURCE
public static final String
REQUESTPROTECTIONAUTHRECIPIENT
public static final String
RESPONSE_PROTECTION
public static final String
RESPONSEPROTECTIONAUTHSOURCE
public static final String
RESPONSEPROTECTIONAUTHRECIPIENT
Constructors Summary
public MessageSecurity()

	// NOI18N

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

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(3);
		this.createProperty("message", 	// NOI18N
			MESSAGE, 
			Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			Message.class);
		this.createProperty("request-protection", 	// NOI18N
			REQUEST_PROTECTION, 
			Common.TYPE_0_1 | Common.TYPE_BOOLEAN | Common.TYPE_KEY, 
			Boolean.class);
		this.createAttribute(REQUEST_PROTECTION, "auth-source", "AuthSource", 
						AttrProp.ENUM | AttrProp.IMPLIED,
						new String[] {
							"sender",
							"content"
						}, null);
		this.createAttribute(REQUEST_PROTECTION, "auth-recipient", "AuthRecipient", 
						AttrProp.ENUM | AttrProp.IMPLIED,
						new String[] {
							"before-content",
							"after-content"
						}, null);
		this.createProperty("response-protection", 	// NOI18N
			RESPONSE_PROTECTION, 
			Common.TYPE_0_1 | Common.TYPE_BOOLEAN | Common.TYPE_KEY, 
			Boolean.class);
		this.createAttribute(RESPONSE_PROTECTION, "auth-source", "AuthSource", 
						AttrProp.ENUM | AttrProp.IMPLIED,
						new String[] {
							"sender",
							"content"
						}, null);
		this.createAttribute(RESPONSE_PROTECTION, "auth-recipient", "AuthRecipient", 
						AttrProp.ENUM | AttrProp.IMPLIED,
						new String[] {
							"before-content",
							"after-content"
						}, null);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddMessage(com.sun.enterprise.tools.common.dd.Message value)

		int positionOfNewItem = this.addValue(MESSAGE, value);
		return positionOfNewItem;
	
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("Message["+this.sizeMessage()+"]");	// NOI18N
		for(int i=0; i<this.sizeMessage(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			n = (org.netbeans.modules.schema2beans.BaseBean) this.getMessage(i);
			if (n != null)
				n.dump(str, indent + "\t");	// NOI18N
			else
				str.append(indent+"\tnull");	// NOI18N
			this.dumpAttributes(MESSAGE, i, str, indent);
		}

		str.append(indent);
		str.append("RequestProtection");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append((this.isRequestProtection()?"true":"false"));
		this.dumpAttributes(REQUEST_PROTECTION, 0, str, indent);

		str.append(indent);
		str.append("ResponseProtection");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append((this.isResponseProtection()?"true":"false"));
		this.dumpAttributes(RESPONSE_PROTECTION, 0, str, indent);

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("MessageSecurity\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public MessagegetMessage(int index)

		return (Message)this.getValue(MESSAGE, index);
	
public Message[]getMessage()

		return (Message[])this.getValues(MESSAGE);
	
public java.lang.StringgetRequestProtectionAuthRecipient()

		// If our element does not exist, then the attribute does not exist.
		if (size(REQUEST_PROTECTION) == 0) {
			return null;
		} else {
			return getAttributeValue(REQUEST_PROTECTION, "AuthRecipient");
		}
	
public java.lang.StringgetRequestProtectionAuthSource()

		// If our element does not exist, then the attribute does not exist.
		if (size(REQUEST_PROTECTION) == 0) {
			return null;
		} else {
			return getAttributeValue(REQUEST_PROTECTION, "AuthSource");
		}
	
public java.lang.StringgetResponseProtectionAuthRecipient()

		// If our element does not exist, then the attribute does not exist.
		if (size(RESPONSE_PROTECTION) == 0) {
			return null;
		} else {
			return getAttributeValue(RESPONSE_PROTECTION, "AuthRecipient");
		}
	
public java.lang.StringgetResponseProtectionAuthSource()

		// If our element does not exist, then the attribute does not exist.
		if (size(RESPONSE_PROTECTION) == 0) {
			return null;
		} else {
			return getAttributeValue(RESPONSE_PROTECTION, "AuthSource");
		}
	
voidinitialize(int options)


	
public booleanisRequestProtection()

		Boolean ret = (Boolean)this.getValue(REQUEST_PROTECTION);
		if (ret == null)
			ret = (Boolean)Common.defaultScalarValue(Common.TYPE_BOOLEAN);
		return ((java.lang.Boolean)ret).booleanValue();
	
public booleanisResponseProtection()

		Boolean ret = (Boolean)this.getValue(RESPONSE_PROTECTION);
		if (ret == null)
			ret = (Boolean)Common.defaultScalarValue(Common.TYPE_BOOLEAN);
		return ((java.lang.Boolean)ret).booleanValue();
	
public MessagenewMessage()
Create a new bean using it's default constructor. This does not add it to any bean graph.

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

		comparators.remove(c);
	
public intremoveMessage(com.sun.enterprise.tools.common.dd.Message value)

		return this.removeValue(MESSAGE, value);
	
public voidsetMessage(int index, Message value)

		this.setValue(MESSAGE, index, value);
	
public voidsetMessage(Message[] value)

		this.setValue(MESSAGE, value);
	
public voidsetRequestProtection(boolean value)

		this.setValue(REQUEST_PROTECTION, (value ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE));
	
public voidsetRequestProtectionAuthRecipient(java.lang.String value)

		// Make sure we've got a place to put this attribute.
		if (size(REQUEST_PROTECTION) == 0) {
			setValue(REQUEST_PROTECTION, java.lang.Boolean.TRUE);
		}
		setAttributeValue(REQUEST_PROTECTION, "AuthRecipient", value);
	
public voidsetRequestProtectionAuthSource(java.lang.String value)

		// Make sure we've got a place to put this attribute.
		if (size(REQUEST_PROTECTION) == 0) {
			setValue(REQUEST_PROTECTION, java.lang.Boolean.TRUE);
		}
		setAttributeValue(REQUEST_PROTECTION, "AuthSource", value);
	
public voidsetResponseProtection(boolean value)

		this.setValue(RESPONSE_PROTECTION, (value ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE));
	
public voidsetResponseProtectionAuthRecipient(java.lang.String value)

		// Make sure we've got a place to put this attribute.
		if (size(RESPONSE_PROTECTION) == 0) {
			setValue(RESPONSE_PROTECTION, java.lang.Boolean.TRUE);
		}
		setAttributeValue(RESPONSE_PROTECTION, "AuthRecipient", value);
	
public voidsetResponseProtectionAuthSource(java.lang.String value)

		// Make sure we've got a place to put this attribute.
		if (size(RESPONSE_PROTECTION) == 0) {
			setValue(RESPONSE_PROTECTION, java.lang.Boolean.TRUE);
		}
		setAttributeValue(RESPONSE_PROTECTION, "AuthSource", value);
	
public intsizeMessage()

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