ResourceRefpublic class ResourceRef extends com.sun.enterprise.tools.common.dd.SunBaseBean This generated bean class ResourceRef matches the schema element resource-ref
Generated on Wed Aug 13 12:12:26 PDT 2003 |
Fields Summary |
---|
static Vector | comparators | public static final String | RES_REF_NAME | public static final String | JNDI_NAME | public static final String | DEFAULT_RESOURCE_PRINCIPAL |
Constructors Summary |
---|
public ResourceRef() // NOI18N
this(Common.USE_DEFAULT_VALUES);
| public ResourceRef(int options)
super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
// Properties (see root bean comments for the bean graph)
this.createProperty("res-ref-name", // NOI18N
RES_REF_NAME,
Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("jndi-name", // NOI18N
JNDI_NAME,
Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("default-resource-principal", // NOI18N
DEFAULT_RESOURCE_PRINCIPAL,
Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
DefaultResourcePrincipal.class);
this.initialize(options);
|
Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
| 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("ResRefName"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getResRefName();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(RES_REF_NAME, 0, str, indent);
str.append(indent);
str.append("JndiName"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getJndiName();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(JNDI_NAME, 0, str, indent);
str.append(indent);
str.append("DefaultResourcePrincipal"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getDefaultResourcePrincipal();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(DEFAULT_RESOURCE_PRINCIPAL, 0, str, indent);
| public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("ResourceRef\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public DefaultResourcePrincipal | getDefaultResourcePrincipal()
return (DefaultResourcePrincipal)this.getValue(DEFAULT_RESOURCE_PRINCIPAL);
| public java.lang.String | getJndiName()
return (String)this.getValue(JNDI_NAME);
| public java.lang.String | getResRefName()
return (String)this.getValue(RES_REF_NAME);
| void | initialize(int options)
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public void | setDefaultResourcePrincipal(DefaultResourcePrincipal value)
this.setValue(DEFAULT_RESOURCE_PRINCIPAL, value);
| public void | setJndiName(java.lang.String value)
this.setValue(JNDI_NAME, value);
| public void | setResRefName(java.lang.String value)
this.setValue(RES_REF_NAME, value);
| public void | validate()
boolean restrictionFailure = false;
// Validating property resRefName
if (getResRefName() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getResRefName() == null", "resRefName", this); // NOI18N
}
// Validating property jndiName
if (getJndiName() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getJndiName() == null", "jndiName", this); // NOI18N
}
// Validating property defaultResourcePrincipal
if (getDefaultResourcePrincipal() != null) {
getDefaultResourcePrincipal().validate();
}
|
|