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(VirtualServer.class).getString("cannotAddDuplicate", "ElementProperty"));
}
return this.addValue(ELEMENT_PROPERTY, 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("HttpAccessLog"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getHttpAccessLog();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(HTTP_ACCESS_LOG, 0, 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("VirtualServer\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.STATE)) return "on".trim();
if(attr.equals(ServerTags.LOG_FILE)) return "${com.sun.aas.instanceRoot}/logs/server.log".trim();
return null;
|
public static java.lang.String | getDefaultLogFile()Get the default value of LogFile from dtd
return "${com.sun.aas.instanceRoot}/logs/server.log".trim();
|
public static java.lang.String | getDefaultState()Get the default value of State from dtd
return "on".trim();
|
public java.lang.String | getDefaultWebModule()Getter for DefaultWebModule of the Element virtual-server
return getAttributeValue(ServerTags.DEFAULT_WEB_MODULE);
|
public java.lang.String | getDocroot()Getter for Docroot of the Element virtual-server
return getAttributeValue(ServerTags.DOCROOT);
|
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 | getHosts()Getter for Hosts of the Element virtual-server
return getAttributeValue(ServerTags.HOSTS);
|
public HttpAccessLog | getHttpAccessLog()
return (HttpAccessLog)this.getValue(HTTP_ACCESS_LOG);
|
public java.lang.String | getHttpListeners()Getter for HttpListeners of the Element virtual-server
return getAttributeValue(ServerTags.HTTP_LISTENERS);
|
public java.lang.String | getId()Getter for Id of the Element virtual-server
return getAttributeValue(ServerTags.ID);
|
public java.lang.String | getLogFile()Getter for LogFile of the Element virtual-server
return getAttributeValue(ServerTags.LOG_FILE);
|
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 = "virtual-server" + (canHaveSiblings() ? "[@id='" + getAttributeValue("id") +"']" : "") ;
return (null != ret ? ret.trim() : null);
|
public java.lang.String | getState()Getter for State of the Element virtual-server
return getAttributeValue(ServerTags.STATE);
|
void | initialize(int options)
|
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 HttpAccessLog | newHttpAccessLog()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new HttpAccessLog();
|
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 void | setDefaultWebModule(java.lang.String v, boolean overwrite)Modify the DefaultWebModule of the Element virtual-server
setAttributeValue(ServerTags.DEFAULT_WEB_MODULE, v, overwrite);
|
public void | setDefaultWebModule(java.lang.String v)Modify the DefaultWebModule of the Element virtual-server
setAttributeValue(ServerTags.DEFAULT_WEB_MODULE, v);
|
public void | setDocroot(java.lang.String v, boolean overwrite)Modify the Docroot of the Element virtual-server
setAttributeValue(ServerTags.DOCROOT, v, overwrite);
|
public void | setDocroot(java.lang.String v)Modify the Docroot of the Element virtual-server
setAttributeValue(ServerTags.DOCROOT, v);
|
public void | setElementProperty(ElementProperty[] value)
this.setValue(ELEMENT_PROPERTY, value);
|
public void | setHosts(java.lang.String v, boolean overwrite)Modify the Hosts of the Element virtual-server
setAttributeValue(ServerTags.HOSTS, v, overwrite);
|
public void | setHosts(java.lang.String v)Modify the Hosts of the Element virtual-server
setAttributeValue(ServerTags.HOSTS, v);
|
public void | setHttpAccessLog(HttpAccessLog value)
this.setValue(HTTP_ACCESS_LOG, value);
|
public void | setHttpListeners(java.lang.String v, boolean overwrite)Modify the HttpListeners of the Element virtual-server
setAttributeValue(ServerTags.HTTP_LISTENERS, v, overwrite);
|
public void | setHttpListeners(java.lang.String v)Modify the HttpListeners of the Element virtual-server
setAttributeValue(ServerTags.HTTP_LISTENERS, v);
|
public void | setId(java.lang.String v, boolean overwrite)Modify the Id of the Element virtual-server
setAttributeValue(ServerTags.ID, v, overwrite);
|
public void | setId(java.lang.String v)Modify the Id of the Element virtual-server
setAttributeValue(ServerTags.ID, v);
|
public void | setLogFile(java.lang.String v, boolean overwrite)Modify the LogFile of the Element virtual-server
setAttributeValue(ServerTags.LOG_FILE, v, overwrite);
|
public void | setLogFile(java.lang.String v)Modify the LogFile of the Element virtual-server
setAttributeValue(ServerTags.LOG_FILE, v);
|
public void | setState(java.lang.String v, boolean overwrite)Modify the State of the Element virtual-server
setAttributeValue(ServerTags.STATE, v, overwrite);
|
public void | setState(java.lang.String v)Modify the State of the Element virtual-server
setAttributeValue(ServerTags.STATE, v);
|
public int | sizeElementProperty()
return this.size(ELEMENT_PROPERTY);
|
public void | validate()
|