ServiceRefpublic class ServiceRef extends com.sun.enterprise.tools.common.dd.SunBaseBean This generated bean class ServiceRef matches the schema element service-ref
Generated on Wed Aug 13 12:12:26 PDT 2003 |
Fields Summary |
---|
static Vector | comparators | public static final String | SERVICE_REF_NAME | public static final String | PORT_INFO | public static final String | CALL_PROPERTY | public static final String | WSDL_OVERRIDE | public static final String | SERVICE_IMPL_CLASS | public static final String | SERVICE_QNAME |
Constructors Summary |
---|
public ServiceRef() // NOI18N
this(Common.USE_DEFAULT_VALUES);
| public ServiceRef(int options)
super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
// Properties (see root bean comments for the bean graph)
this.createProperty("service-ref-name", // NOI18N
SERVICE_REF_NAME,
Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("port-info", // NOI18N
PORT_INFO,
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
PortInfo.class);
this.createProperty("call-property", // NOI18N
CALL_PROPERTY,
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
CallProperty.class);
this.createProperty("wsdl-override", // NOI18N
WSDL_OVERRIDE,
Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("service-impl-class", // NOI18N
SERVICE_IMPL_CLASS,
Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("service-qname", // NOI18N
SERVICE_QNAME,
Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
ServiceQname.class);
this.initialize(options);
|
Methods Summary |
---|
public int | addCallProperty(com.sun.enterprise.tools.common.dd.CallProperty value)
return this.addValue(CALL_PROPERTY, value);
| public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
| public int | addPortInfo(com.sun.enterprise.tools.common.dd.PortInfo value)
return this.addValue(PORT_INFO, value);
| 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("ServiceRefName"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getServiceRefName();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(SERVICE_REF_NAME, 0, str, indent);
str.append(indent);
str.append("PortInfo["+this.sizePortInfo()+"]"); // NOI18N
for(int i=0; i<this.sizePortInfo(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getPortInfo(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(PORT_INFO, i, str, indent);
}
str.append(indent);
str.append("CallProperty["+this.sizeCallProperty()+"]"); // NOI18N
for(int i=0; i<this.sizeCallProperty(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getCallProperty(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(CALL_PROPERTY, i, str, indent);
}
str.append(indent);
str.append("WsdlOverride"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getWsdlOverride();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(WSDL_OVERRIDE, 0, str, indent);
str.append(indent);
str.append("ServiceImplClass"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getServiceImplClass();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(SERVICE_IMPL_CLASS, 0, str, indent);
str.append(indent);
str.append("ServiceQname"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getServiceQname();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(SERVICE_QNAME, 0, str, indent);
| public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("ServiceRef\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public com.sun.enterprise.tools.common.dd.CallProperty | getCallProperty(int index)
return (CallProperty)this.getValue(CALL_PROPERTY, index);
| public com.sun.enterprise.tools.common.dd.CallProperty[] | getCallProperty()
return (CallProperty[])this.getValues(CALL_PROPERTY);
| public com.sun.enterprise.tools.common.dd.PortInfo | getPortInfo(int index)
return (PortInfo)this.getValue(PORT_INFO, index);
| public com.sun.enterprise.tools.common.dd.PortInfo[] | getPortInfo()
return (PortInfo[])this.getValues(PORT_INFO);
| public java.lang.String | getServiceImplClass()
return (String)this.getValue(SERVICE_IMPL_CLASS);
| public ServiceQname | getServiceQname()
return (ServiceQname)this.getValue(SERVICE_QNAME);
| public java.lang.String | getServiceRefName()
return (String)this.getValue(SERVICE_REF_NAME);
| public java.lang.String | getWsdlOverride()
return (String)this.getValue(WSDL_OVERRIDE);
| void | initialize(int options)
| public int | removeCallProperty(com.sun.enterprise.tools.common.dd.CallProperty value)
return this.removeValue(CALL_PROPERTY, value);
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public int | removePortInfo(com.sun.enterprise.tools.common.dd.PortInfo value)
return this.removeValue(PORT_INFO, value);
| public void | setCallProperty(int index, com.sun.enterprise.tools.common.dd.CallProperty value)
this.setValue(CALL_PROPERTY, index, value);
| public void | setCallProperty(com.sun.enterprise.tools.common.dd.CallProperty[] value)
this.setValue(CALL_PROPERTY, value);
| public void | setPortInfo(int index, com.sun.enterprise.tools.common.dd.PortInfo value)
this.setValue(PORT_INFO, index, value);
| public void | setPortInfo(com.sun.enterprise.tools.common.dd.PortInfo[] value)
this.setValue(PORT_INFO, value);
| public void | setServiceImplClass(java.lang.String value)
this.setValue(SERVICE_IMPL_CLASS, value);
| public void | setServiceQname(ServiceQname value)
this.setValue(SERVICE_QNAME, value);
| public void | setServiceRefName(java.lang.String value)
this.setValue(SERVICE_REF_NAME, value);
| public void | setWsdlOverride(java.lang.String value)
this.setValue(WSDL_OVERRIDE, value);
| public int | sizeCallProperty()
return this.size(CALL_PROPERTY);
| public int | sizePortInfo()
return this.size(PORT_INFO);
| public void | validate()
boolean restrictionFailure = false;
// Validating property serviceRefName
if (getServiceRefName() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getServiceRefName() == null", "serviceRefName", this); // NOI18N
}
// Validating property portInfo
for (int _index = 0; _index < sizePortInfo(); ++_index) {
com.sun.enterprise.tools.common.dd.PortInfo element = getPortInfo(_index);
if (element != null) {
element.validate();
}
}
// Validating property callProperty
for (int _index = 0; _index < sizeCallProperty(); ++_index) {
com.sun.enterprise.tools.common.dd.CallProperty element = getCallProperty(_index);
if (element != null) {
element.validate();
}
}
// Validating property wsdlOverride
if (getWsdlOverride() != null) {
}
// Validating property serviceImplClass
if (getServiceImplClass() != null) {
}
// Validating property serviceQname
if (getServiceQname() != null) {
getServiceQname().validate();
}
|
|