Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
|
public int | addElementProperty(ElementProperty value)
return addElementProperty(value, true);
|
public int | addElementProperty(ElementProperty value, boolean overwrite)
ElementProperty old = getElementPropertyByName(value.getName());
if(old != null) {
throw new ConfigException(StringManager.getManager(JavaConfig.class).getString("cannotAddDuplicate", "ElementProperty"));
}
return this.addValue(ELEMENT_PROPERTY, value, overwrite);
|
public int | addJvmOptions(java.lang.String value, boolean overwrite)
return this.addValue(JVM_OPTIONS, value, overwrite);
|
public int | addJvmOptions(java.lang.String value)
return addJvmOptions(value, true);
|
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("Profiler"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getProfiler();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(PROFILER, 0, str, indent);
str.append(indent);
str.append("JvmOptions["+this.sizeJvmOptions()+"]"); // NOI18N
for(int i=0; i<this.sizeJvmOptions(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
o = this.getValue(JVM_OPTIONS, i);
str.append((o==null?"null":o.toString().trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(JVM_OPTIONS, i, str, indent);
}
str.append(indent);
str.append("ElementProperty["+this.sizeElementProperty()+"]"); // NOI18N
for(int i=0; i<this.sizeElementProperty(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getElementProperty(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(ELEMENT_PROPERTY, i, str, indent);
}
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("JavaConfig\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public java.lang.String | getBytecodePreprocessors()Getter for BytecodePreprocessors of the Element java-config
return getAttributeValue(ServerTags.BYTECODE_PREPROCESSORS);
|
public java.lang.String | getClasspathPrefix()Getter for ClasspathPrefix of the Element java-config
return getAttributeValue(ServerTags.CLASSPATH_PREFIX);
|
public java.lang.String | getClasspathSuffix()Getter for ClasspathSuffix of the Element java-config
return getAttributeValue(ServerTags.CLASSPATH_SUFFIX);
|
public java.lang.String | getDebugOptions()Getter for DebugOptions of the Element java-config
return getAttributeValue(ServerTags.DEBUG_OPTIONS);
|
public static java.lang.String | getDefaultAttributeValue(java.lang.String attr)
if(attr == null) return null;
attr = attr.trim();
if(attr.equals(ServerTags.JAVA_HOME)) return "${com.sun.aas.javaRoot}".trim();
if(attr.equals(ServerTags.DEBUG_ENABLED)) return "false".trim();
if(attr.equals(ServerTags.DEBUG_OPTIONS)) return "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n".trim();
if(attr.equals(ServerTags.RMIC_OPTIONS)) return "-iiop -poa -alwaysgenerate -keepgenerated -g".trim();
if(attr.equals(ServerTags.JAVAC_OPTIONS)) return "-g".trim();
if(attr.equals(ServerTags.ENV_CLASSPATH_IGNORED)) return "true".trim();
return null;
|
public static java.lang.String | getDefaultDebugEnabled()Get the default value of DebugEnabled from dtd
return "false".trim();
|
public static java.lang.String | getDefaultDebugOptions()Get the default value of DebugOptions from dtd
return "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n".trim();
|
public static java.lang.String | getDefaultEnvClasspathIgnored()Get the default value of EnvClasspathIgnored from dtd
return "true".trim();
|
public static java.lang.String | getDefaultJavaHome()Get the default value of JavaHome from dtd
return "${com.sun.aas.javaRoot}".trim();
|
public static java.lang.String | getDefaultJavacOptions()Get the default value of JavacOptions from dtd
return "-g".trim();
|
public static java.lang.String | getDefaultRmicOptions()Get the default value of RmicOptions from dtd
return "-iiop -poa -alwaysgenerate -keepgenerated -g".trim();
|
public ElementProperty | getElementProperty(int index)
return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
|
public ElementProperty[] | getElementProperty()
return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
|
public ElementProperty | getElementPropertyByName(java.lang.String id)
if (null != id) { id = id.trim(); }
ElementProperty[] o = getElementProperty();
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;
|
public java.lang.String | getJavaHome()Getter for JavaHome of the Element java-config
return getAttributeValue(ServerTags.JAVA_HOME);
|
public java.lang.String | getJavacOptions()Getter for JavacOptions of the Element java-config
return getAttributeValue(ServerTags.JAVAC_OPTIONS);
|
public java.lang.String[] | getJvmOptions()
return (String[])this.getValues(JVM_OPTIONS);
|
public java.lang.String | getNativeLibraryPathPrefix()Getter for NativeLibraryPathPrefix of the Element java-config
return getAttributeValue(ServerTags.NATIVE_LIBRARY_PATH_PREFIX);
|
public java.lang.String | getNativeLibraryPathSuffix()Getter for NativeLibraryPathSuffix of the Element java-config
return getAttributeValue(ServerTags.NATIVE_LIBRARY_PATH_SUFFIX);
|
public Profiler | getProfiler()
return (Profiler)this.getValue(PROFILER);
|
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 = "java-config";
return (null != ret ? ret.trim() : null);
|
public java.lang.String | getRmicOptions()Getter for RmicOptions of the Element java-config
return getAttributeValue(ServerTags.RMIC_OPTIONS);
|
public java.lang.String | getServerClasspath()Getter for ServerClasspath of the Element java-config
return getAttributeValue(ServerTags.SERVER_CLASSPATH);
|
public java.lang.String | getSystemClasspath()Getter for SystemClasspath of the Element java-config
return getAttributeValue(ServerTags.SYSTEM_CLASSPATH);
|
void | initialize(int options)
|
public boolean | isDebugEnabled()Getter for DebugEnabled of the Element java-config
return toBoolean(getAttributeValue(ServerTags.DEBUG_ENABLED));
|
public boolean | isEnvClasspathIgnored()Getter for EnvClasspathIgnored of the Element java-config
return toBoolean(getAttributeValue(ServerTags.ENV_CLASSPATH_IGNORED));
|
public ElementProperty | newElementProperty()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new ElementProperty();
|
public Profiler | newProfiler()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new Profiler();
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public int | removeElementProperty(ElementProperty value)
return this.removeValue(ELEMENT_PROPERTY, value);
|
public int | removeElementProperty(ElementProperty value, boolean overwrite)
return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
|
public int | removeJvmOptions(java.lang.String value)
return this.removeValue(JVM_OPTIONS, value);
|
public int | removeJvmOptions(java.lang.String value, boolean overwrite)
return this.removeValue(JVM_OPTIONS, value, overwrite);
|
public void | setBytecodePreprocessors(java.lang.String v, boolean overwrite)Modify the BytecodePreprocessors of the Element java-config
setAttributeValue(ServerTags.BYTECODE_PREPROCESSORS, v, overwrite);
|
public void | setBytecodePreprocessors(java.lang.String v)Modify the BytecodePreprocessors of the Element java-config
setAttributeValue(ServerTags.BYTECODE_PREPROCESSORS, v);
|
public void | setClasspathPrefix(java.lang.String v, boolean overwrite)Modify the ClasspathPrefix of the Element java-config
setAttributeValue(ServerTags.CLASSPATH_PREFIX, v, overwrite);
|
public void | setClasspathPrefix(java.lang.String v)Modify the ClasspathPrefix of the Element java-config
setAttributeValue(ServerTags.CLASSPATH_PREFIX, v);
|
public void | setClasspathSuffix(java.lang.String v, boolean overwrite)Modify the ClasspathSuffix of the Element java-config
setAttributeValue(ServerTags.CLASSPATH_SUFFIX, v, overwrite);
|
public void | setClasspathSuffix(java.lang.String v)Modify the ClasspathSuffix of the Element java-config
setAttributeValue(ServerTags.CLASSPATH_SUFFIX, v);
|
public void | setDebugEnabled(boolean v, boolean overwrite)Modify the DebugEnabled of the Element java-config
setAttributeValue(ServerTags.DEBUG_ENABLED, ""+(v==true), overwrite);
|
public void | setDebugEnabled(boolean v)Modify the DebugEnabled of the Element java-config
setAttributeValue(ServerTags.DEBUG_ENABLED, ""+(v==true));
|
public void | setDebugOptions(java.lang.String v, boolean overwrite)Modify the DebugOptions of the Element java-config
setAttributeValue(ServerTags.DEBUG_OPTIONS, v, overwrite);
|
public void | setDebugOptions(java.lang.String v)Modify the DebugOptions of the Element java-config
setAttributeValue(ServerTags.DEBUG_OPTIONS, v);
|
public void | setElementProperty(ElementProperty[] value)
this.setValue(ELEMENT_PROPERTY, value);
|
public void | setEnvClasspathIgnored(boolean v, boolean overwrite)Modify the EnvClasspathIgnored of the Element java-config
setAttributeValue(ServerTags.ENV_CLASSPATH_IGNORED, ""+(v==true), overwrite);
|
public void | setEnvClasspathIgnored(boolean v)Modify the EnvClasspathIgnored of the Element java-config
setAttributeValue(ServerTags.ENV_CLASSPATH_IGNORED, ""+(v==true));
|
public void | setJavaHome(java.lang.String v, boolean overwrite)Modify the JavaHome of the Element java-config
setAttributeValue(ServerTags.JAVA_HOME, v, overwrite);
|
public void | setJavaHome(java.lang.String v)Modify the JavaHome of the Element java-config
setAttributeValue(ServerTags.JAVA_HOME, v);
|
public void | setJavacOptions(java.lang.String v, boolean overwrite)Modify the JavacOptions of the Element java-config
setAttributeValue(ServerTags.JAVAC_OPTIONS, v, overwrite);
|
public void | setJavacOptions(java.lang.String v)Modify the JavacOptions of the Element java-config
setAttributeValue(ServerTags.JAVAC_OPTIONS, v);
|
public void | setJvmOptions(java.lang.String[] value)
this.setValue(JVM_OPTIONS, value);
|
public void | setNativeLibraryPathPrefix(java.lang.String v, boolean overwrite)Modify the NativeLibraryPathPrefix of the Element java-config
setAttributeValue(ServerTags.NATIVE_LIBRARY_PATH_PREFIX, v, overwrite);
|
public void | setNativeLibraryPathPrefix(java.lang.String v)Modify the NativeLibraryPathPrefix of the Element java-config
setAttributeValue(ServerTags.NATIVE_LIBRARY_PATH_PREFIX, v);
|
public void | setNativeLibraryPathSuffix(java.lang.String v, boolean overwrite)Modify the NativeLibraryPathSuffix of the Element java-config
setAttributeValue(ServerTags.NATIVE_LIBRARY_PATH_SUFFIX, v, overwrite);
|
public void | setNativeLibraryPathSuffix(java.lang.String v)Modify the NativeLibraryPathSuffix of the Element java-config
setAttributeValue(ServerTags.NATIVE_LIBRARY_PATH_SUFFIX, v);
|
public void | setProfiler(Profiler value)
this.setValue(PROFILER, value);
|
public void | setRmicOptions(java.lang.String v, boolean overwrite)Modify the RmicOptions of the Element java-config
setAttributeValue(ServerTags.RMIC_OPTIONS, v, overwrite);
|
public void | setRmicOptions(java.lang.String v)Modify the RmicOptions of the Element java-config
setAttributeValue(ServerTags.RMIC_OPTIONS, v);
|
public void | setServerClasspath(java.lang.String v, boolean overwrite)Modify the ServerClasspath of the Element java-config
setAttributeValue(ServerTags.SERVER_CLASSPATH, v, overwrite);
|
public void | setServerClasspath(java.lang.String v)Modify the ServerClasspath of the Element java-config
setAttributeValue(ServerTags.SERVER_CLASSPATH, v);
|
public void | setSystemClasspath(java.lang.String v, boolean overwrite)Modify the SystemClasspath of the Element java-config
setAttributeValue(ServerTags.SYSTEM_CLASSPATH, v, overwrite);
|
public void | setSystemClasspath(java.lang.String v)Modify the SystemClasspath of the Element java-config
setAttributeValue(ServerTags.SYSTEM_CLASSPATH, v);
|
public int | sizeElementProperty()
return this.size(ELEMENT_PROPERTY);
|
public int | sizeJvmOptions()
return this.size(JVM_OPTIONS);
|
public void | validate()
|