MessageSecuritypublic 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 |
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 void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
| public int | addMessage(com.sun.enterprise.tools.common.dd.Message value)
int positionOfNewItem = this.addValue(MESSAGE, value);
return positionOfNewItem;
| public void | dump(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.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("MessageSecurity\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public Message | getMessage(int index)
return (Message)this.getValue(MESSAGE, index);
| public Message[] | getMessage()
return (Message[])this.getValues(MESSAGE);
| public java.lang.String | getRequestProtectionAuthRecipient()
// 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.String | getRequestProtectionAuthSource()
// 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.String | getResponseProtectionAuthRecipient()
// 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.String | getResponseProtectionAuthSource()
// 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");
}
| void | initialize(int options)
| public boolean | isRequestProtection()
Boolean ret = (Boolean)this.getValue(REQUEST_PROTECTION);
if (ret == null)
ret = (Boolean)Common.defaultScalarValue(Common.TYPE_BOOLEAN);
return ((java.lang.Boolean)ret).booleanValue();
| public boolean | isResponseProtection()
Boolean ret = (Boolean)this.getValue(RESPONSE_PROTECTION);
if (ret == null)
ret = (Boolean)Common.defaultScalarValue(Common.TYPE_BOOLEAN);
return ((java.lang.Boolean)ret).booleanValue();
| public Message | newMessage()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new Message();
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public int | removeMessage(com.sun.enterprise.tools.common.dd.Message value)
return this.removeValue(MESSAGE, value);
| public void | setMessage(int index, Message value)
this.setValue(MESSAGE, index, value);
| public void | setMessage(Message[] value)
this.setValue(MESSAGE, value);
| public void | setRequestProtection(boolean value)
this.setValue(REQUEST_PROTECTION, (value ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE));
| public void | setRequestProtectionAuthRecipient(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 void | setRequestProtectionAuthSource(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 void | setResponseProtection(boolean value)
this.setValue(RESPONSE_PROTECTION, (value ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE));
| public void | setResponseProtectionAuthRecipient(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 void | setResponseProtectionAuthSource(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 int | sizeMessage()
return this.size(MESSAGE);
| public void | validate()
|
|