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;
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("TransformationRule\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public java.lang.String | getApplyTo()Getter for ApplyTo of the Element transformation-rule
return getAttributeValue(ServerTags.APPLY_TO);
|
public static java.lang.String | getDefaultApplyTo()Get the default value of ApplyTo from dtd
return "request".trim();
|
public static java.lang.String | getDefaultAttributeValue(java.lang.String attr)
if(attr == null) return null;
attr = attr.trim();
if(attr.equals(ServerTags.ENABLED)) return "true".trim();
if(attr.equals(ServerTags.APPLY_TO)) return "request".trim();
return null;
|
public static java.lang.String | getDefaultEnabled()Get the default value of Enabled from dtd
return "true".trim();
|
public java.lang.String | getName()Getter for Name of the Element transformation-rule
return getAttributeValue(ServerTags.NAME);
|
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 = "transformation-rule" + (canHaveSiblings() ? "[@name='" + getAttributeValue("name") +"']" : "") ;
return (null != ret ? ret.trim() : null);
|
public java.lang.String | getRuleFileLocation()Getter for RuleFileLocation of the Element transformation-rule
return getAttributeValue(ServerTags.RULE_FILE_LOCATION);
|
void | initialize(int options)
|
public boolean | isEnabled()Getter for Enabled of the Element transformation-rule
return toBoolean(getAttributeValue(ServerTags.ENABLED));
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public void | setApplyTo(java.lang.String v, boolean overwrite)Modify the ApplyTo of the Element transformation-rule
setAttributeValue(ServerTags.APPLY_TO, v, overwrite);
|
public void | setApplyTo(java.lang.String v)Modify the ApplyTo of the Element transformation-rule
setAttributeValue(ServerTags.APPLY_TO, v);
|
public void | setEnabled(boolean v, boolean overwrite)Modify the Enabled of the Element transformation-rule
setAttributeValue(ServerTags.ENABLED, ""+(v==true), overwrite);
|
public void | setEnabled(boolean v)Modify the Enabled of the Element transformation-rule
setAttributeValue(ServerTags.ENABLED, ""+(v==true));
|
public void | setName(java.lang.String v, boolean overwrite)Modify the Name of the Element transformation-rule
setAttributeValue(ServerTags.NAME, v, overwrite);
|
public void | setName(java.lang.String v)Modify the Name of the Element transformation-rule
setAttributeValue(ServerTags.NAME, v);
|
public void | setRuleFileLocation(java.lang.String v, boolean overwrite)Modify the RuleFileLocation of the Element transformation-rule
setAttributeValue(ServerTags.RULE_FILE_LOCATION, v, overwrite);
|
public void | setRuleFileLocation(java.lang.String v)Modify the RuleFileLocation of the Element transformation-rule
setAttributeValue(ServerTags.RULE_FILE_LOCATION, v);
|
public void | validate()
|