Constructors Summary |
---|
public WebServiceEndpoint()
this(Common.USE_DEFAULT_VALUES);
|
public WebServiceEndpoint(int options)
super(comparators, runtimeVersion);
// Properties (see root bean comments for the bean graph)
initPropertyTables(2);
this.createProperty("registry-location", REGISTRY_LOCATION,
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
RegistryLocation.class);
this.createAttribute(REGISTRY_LOCATION, "connector-resource-jndi-name", "ConnectorResourceJndiName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createProperty("transformation-rule", TRANSFORMATION_RULE,
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
TransformationRule.class);
this.createAttribute(TRANSFORMATION_RULE, "name", "Name",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(TRANSFORMATION_RULE, "enabled", "Enabled",
AttrProp.CDATA,
null, "true");
this.createAttribute(TRANSFORMATION_RULE, "apply-to", "ApplyTo",
AttrProp.CDATA,
null, "request");
this.createAttribute(TRANSFORMATION_RULE, "rule-file-location", "RuleFileLocation",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.initialize(options);
|
Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
|
public int | addRegistryLocation(RegistryLocation value)
return addRegistryLocation(value, true);
|
public int | addRegistryLocation(RegistryLocation value, boolean overwrite)
RegistryLocation old = getRegistryLocationByConnectorResourceJndiName(value.getConnectorResourceJndiName());
if(old != null) {
throw new ConfigException(StringManager.getManager(WebServiceEndpoint.class).getString("cannotAddDuplicate", "RegistryLocation"));
}
return this.addValue(REGISTRY_LOCATION, value, overwrite);
|
public int | addTransformationRule(TransformationRule value)
return addTransformationRule(value, true);
|
public int | addTransformationRule(TransformationRule value, boolean overwrite)
TransformationRule old = getTransformationRuleByName(value.getName());
if(old != null) {
throw new ConfigException(StringManager.getManager(WebServiceEndpoint.class).getString("cannotAddDuplicate", "TransformationRule"));
}
return this.addValue(TRANSFORMATION_RULE, value, overwrite);
|
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("RegistryLocation["+this.sizeRegistryLocation()+"]"); // NOI18N
for(int i=0; i<this.sizeRegistryLocation(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getRegistryLocation(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(REGISTRY_LOCATION, i, str, indent);
}
str.append(indent);
str.append("TransformationRule["+this.sizeTransformationRule()+"]"); // NOI18N
for(int i=0; i<this.sizeTransformationRule(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getTransformationRule(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(TRANSFORMATION_RULE, i, str, indent);
}
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("WebServiceEndpoint\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public static java.lang.String | getDefaultAttributeValue(java.lang.String attr)
if(attr == null) return null;
attr = attr.trim();
if(attr.equals(ServerTags.MONITORING)) return "OFF".trim();
if(attr.equals(ServerTags.MAX_HISTORY_SIZE)) return "25".trim();
if(attr.equals(ServerTags.JBI_ENABLED)) return "false".trim();
return null;
|
public static java.lang.String | getDefaultJbiEnabled()Get the default value of JbiEnabled from dtd
return "false".trim();
|
public static java.lang.String | getDefaultMaxHistorySize()Get the default value of MaxHistorySize from dtd
return "25".trim();
|
public static java.lang.String | getDefaultMonitoring()Get the default value of Monitoring from dtd
return "OFF".trim();
|
public java.lang.String | getMaxHistorySize()Getter for MaxHistorySize of the Element web-service-endpoint
return getAttributeValue(ServerTags.MAX_HISTORY_SIZE);
|
public java.lang.String | getMonitoring()Getter for Monitoring of the Element web-service-endpoint
return getAttributeValue(ServerTags.MONITORING);
|
public java.lang.String | getName()Getter for Name of the Element web-service-endpoint
return getAttributeValue(ServerTags.NAME);
|
public RegistryLocation | getRegistryLocation(int index)
return (RegistryLocation)this.getValue(REGISTRY_LOCATION, index);
|
public RegistryLocation[] | getRegistryLocation()
return (RegistryLocation[])this.getValues(REGISTRY_LOCATION);
|
public RegistryLocation | getRegistryLocationByConnectorResourceJndiName(java.lang.String id)
if (null != id) { id = id.trim(); }
RegistryLocation[] o = getRegistryLocation();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.CONNECTOR_RESOURCE_JNDI_NAME)).equals(id)) {
return o[i];
}
}
return null;
|
protected java.lang.String | getRelativeXPath()get the xpath representation for this element
returns something like abc[@name='value'] or abc
depending on the type of the bean
String ret = null;
ret = "web-service-endpoint" + (canHaveSiblings() ? "[@name='" + getAttributeValue("name") +"']" : "") ;
return (null != ret ? ret.trim() : null);
|
public TransformationRule | getTransformationRule(int index)
return (TransformationRule)this.getValue(TRANSFORMATION_RULE, index);
|
public TransformationRule[] | getTransformationRule()
return (TransformationRule[])this.getValues(TRANSFORMATION_RULE);
|
public TransformationRule | getTransformationRuleByName(java.lang.String id)
if (null != id) { id = id.trim(); }
TransformationRule[] o = getTransformationRule();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
return o[i];
}
}
return null;
|
void | initialize(int options)
|
public boolean | isJbiEnabled()Getter for JbiEnabled of the Element web-service-endpoint
return toBoolean(getAttributeValue(ServerTags.JBI_ENABLED));
|
public RegistryLocation | newRegistryLocation()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new RegistryLocation();
|
public TransformationRule | newTransformationRule()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new TransformationRule();
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public int | removeRegistryLocation(RegistryLocation value)
return this.removeValue(REGISTRY_LOCATION, value);
|
public int | removeRegistryLocation(RegistryLocation value, boolean overwrite)
return this.removeValue(REGISTRY_LOCATION, value, overwrite);
|
public int | removeTransformationRule(TransformationRule value)
return this.removeValue(TRANSFORMATION_RULE, value);
|
public int | removeTransformationRule(TransformationRule value, boolean overwrite)
return this.removeValue(TRANSFORMATION_RULE, value, overwrite);
|
public void | setJbiEnabled(boolean v, boolean overwrite)Modify the JbiEnabled of the Element web-service-endpoint
setAttributeValue(ServerTags.JBI_ENABLED, ""+(v==true), overwrite);
|
public void | setJbiEnabled(boolean v)Modify the JbiEnabled of the Element web-service-endpoint
setAttributeValue(ServerTags.JBI_ENABLED, ""+(v==true));
|
public void | setMaxHistorySize(java.lang.String v, boolean overwrite)Modify the MaxHistorySize of the Element web-service-endpoint
setAttributeValue(ServerTags.MAX_HISTORY_SIZE, v, overwrite);
|
public void | setMaxHistorySize(java.lang.String v)Modify the MaxHistorySize of the Element web-service-endpoint
setAttributeValue(ServerTags.MAX_HISTORY_SIZE, v);
|
public void | setMonitoring(java.lang.String v, boolean overwrite)Modify the Monitoring of the Element web-service-endpoint
setAttributeValue(ServerTags.MONITORING, v, overwrite);
|
public void | setMonitoring(java.lang.String v)Modify the Monitoring of the Element web-service-endpoint
setAttributeValue(ServerTags.MONITORING, v);
|
public void | setName(java.lang.String v, boolean overwrite)Modify the Name of the Element web-service-endpoint
setAttributeValue(ServerTags.NAME, v, overwrite);
|
public void | setName(java.lang.String v)Modify the Name of the Element web-service-endpoint
setAttributeValue(ServerTags.NAME, v);
|
public void | setRegistryLocation(RegistryLocation[] value)
this.setValue(REGISTRY_LOCATION, value);
|
public void | setTransformationRule(TransformationRule[] value)
this.setValue(TRANSFORMATION_RULE, value);
|
public int | sizeRegistryLocation()
return this.size(REGISTRY_LOCATION);
|
public int | sizeTransformationRule()
return this.size(TRANSFORMATION_RULE);
|
public void | validate()
|