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("ResourceRef\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.ENABLED)) return "true".trim();
return null;
|
public static java.lang.String | getDefaultEnabled()Get the default value of Enabled from dtd
return "true".trim();
|
public java.lang.String | getRef()Getter for Ref of the Element resource-ref
return getAttributeValue(ServerTags.REF);
|
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 = "resource-ref" + (canHaveSiblings() ? "[@ref='" + getAttributeValue("ref") +"']" : "") ;
return (null != ret ? ret.trim() : null);
|
void | initialize(int options)
|
public boolean | isEnabled()Getter for Enabled of the Element resource-ref
return toBoolean(getAttributeValue(ServerTags.ENABLED));
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public void | setEnabled(boolean v, boolean overwrite)Modify the Enabled of the Element resource-ref
setAttributeValue(ServerTags.ENABLED, ""+(v==true), overwrite);
|
public void | setEnabled(boolean v)Modify the Enabled of the Element resource-ref
setAttributeValue(ServerTags.ENABLED, ""+(v==true));
|
public void | setRef(java.lang.String v)Modify the Ref of the Element resource-ref
setAttributeValue(ServerTags.REF, v);
|
public void | setRef(java.lang.String v, boolean overwrite)Modify the Ref of the Element resource-ref
setAttributeValue(ServerTags.REF, v, overwrite);
|
public void | validate()
|