Constructors Summary |
---|
public PortInfo() // NOI18N
this(Common.USE_DEFAULT_VALUES);
|
public PortInfo(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-endpoint-interface", // NOI18N
SERVICE_ENDPOINT_INTERFACE,
Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("wsdl-port", // NOI18N
WSDL_PORT,
Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
WsdlPort.class);
this.createProperty("stub-property", // NOI18N
STUB_PROPERTY,
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
StubProperty.class);
this.createProperty("call-property", // NOI18N
CALL_PROPERTY,
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
CallProperty.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 | addStubProperty(com.sun.enterprise.tools.common.dd.StubProperty value)
return this.addValue(STUB_PROPERTY, 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("ServiceEndpointInterface"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getServiceEndpointInterface();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(SERVICE_ENDPOINT_INTERFACE, 0, str, indent);
str.append(indent);
str.append("WsdlPort"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getWsdlPort();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(WSDL_PORT, 0, str, indent);
str.append(indent);
str.append("StubProperty["+this.sizeStubProperty()+"]"); // NOI18N
for(int i=0; i<this.sizeStubProperty(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getStubProperty(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(STUB_PROPERTY, 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);
}
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("PortInfo\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 java.lang.String | getServiceEndpointInterface()
return (String)this.getValue(SERVICE_ENDPOINT_INTERFACE);
|
public com.sun.enterprise.tools.common.dd.StubProperty[] | getStubProperty()
return (StubProperty[])this.getValues(STUB_PROPERTY);
|
public com.sun.enterprise.tools.common.dd.StubProperty | getStubProperty(int index)
return (StubProperty)this.getValue(STUB_PROPERTY, index);
|
public WsdlPort | getWsdlPort()
return (WsdlPort)this.getValue(WSDL_PORT);
|
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 | removeStubProperty(com.sun.enterprise.tools.common.dd.StubProperty value)
return this.removeValue(STUB_PROPERTY, 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 | setServiceEndpointInterface(java.lang.String value)
this.setValue(SERVICE_ENDPOINT_INTERFACE, value);
|
public void | setStubProperty(com.sun.enterprise.tools.common.dd.StubProperty[] value)
this.setValue(STUB_PROPERTY, value);
|
public void | setStubProperty(int index, com.sun.enterprise.tools.common.dd.StubProperty value)
this.setValue(STUB_PROPERTY, index, value);
|
public void | setWsdlPort(WsdlPort value)
this.setValue(WSDL_PORT, value);
|
public int | sizeCallProperty()
return this.size(CALL_PROPERTY);
|
public int | sizeStubProperty()
return this.size(STUB_PROPERTY);
|
public void | validate()
boolean restrictionFailure = false;
// Validating property serviceEndpointInterface
if (getServiceEndpointInterface() != null) {
}
// Validating property wsdlPort
if (getWsdlPort() != null) {
getWsdlPort().validate();
}
// Validating property stubProperty
for (int _index = 0; _index < sizeStubProperty(); ++_index) {
com.sun.enterprise.tools.common.dd.StubProperty element = getStubProperty(_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();
}
}
|