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("AccessLog\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.FORMAT)) return "%client.name% %auth-user-name% %datetime% %request% %status% %response.length%".trim();
if(attr.equals(ServerTags.ROTATION_POLICY)) return "time".trim();
if(attr.equals(ServerTags.ROTATION_INTERVAL_IN_MINUTES)) return "1440".trim();
if(attr.equals(ServerTags.ROTATION_SUFFIX)) return "yyyyMMdd-HH'h'mm'm'ss's'".trim();
if(attr.equals(ServerTags.ROTATION_ENABLED)) return "true".trim();
return null;
|
public static java.lang.String | getDefaultFormat()Get the default value of Format from dtd
return "%client.name% %auth-user-name% %datetime% %request% %status% %response.length%".trim();
|
public static java.lang.String | getDefaultRotationEnabled()Get the default value of RotationEnabled from dtd
return "true".trim();
|
public static java.lang.String | getDefaultRotationIntervalInMinutes()Get the default value of RotationIntervalInMinutes from dtd
return "1440".trim();
|
public static java.lang.String | getDefaultRotationPolicy()Get the default value of RotationPolicy from dtd
return "time".trim();
|
public static java.lang.String | getDefaultRotationSuffix()Get the default value of RotationSuffix from dtd
return "yyyyMMdd-HH'h'mm'm'ss's'".trim();
|
public java.lang.String | getFormat()Getter for Format of the Element access-log
return getAttributeValue(ServerTags.FORMAT);
|
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 = "access-log";
return (null != ret ? ret.trim() : null);
|
public java.lang.String | getRotationIntervalInMinutes()Getter for RotationIntervalInMinutes of the Element access-log
return getAttributeValue(ServerTags.ROTATION_INTERVAL_IN_MINUTES);
|
public java.lang.String | getRotationPolicy()Getter for RotationPolicy of the Element access-log
return getAttributeValue(ServerTags.ROTATION_POLICY);
|
public java.lang.String | getRotationSuffix()Getter for RotationSuffix of the Element access-log
return getAttributeValue(ServerTags.ROTATION_SUFFIX);
|
void | initialize(int options)
|
public boolean | isRotationEnabled()Getter for RotationEnabled of the Element access-log
return toBoolean(getAttributeValue(ServerTags.ROTATION_ENABLED));
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public void | setFormat(java.lang.String v, boolean overwrite)Modify the Format of the Element access-log
setAttributeValue(ServerTags.FORMAT, v, overwrite);
|
public void | setFormat(java.lang.String v)Modify the Format of the Element access-log
setAttributeValue(ServerTags.FORMAT, v);
|
public void | setRotationEnabled(boolean v, boolean overwrite)Modify the RotationEnabled of the Element access-log
setAttributeValue(ServerTags.ROTATION_ENABLED, ""+(v==true), overwrite);
|
public void | setRotationEnabled(boolean v)Modify the RotationEnabled of the Element access-log
setAttributeValue(ServerTags.ROTATION_ENABLED, ""+(v==true));
|
public void | setRotationIntervalInMinutes(java.lang.String v, boolean overwrite)Modify the RotationIntervalInMinutes of the Element access-log
setAttributeValue(ServerTags.ROTATION_INTERVAL_IN_MINUTES, v, overwrite);
|
public void | setRotationIntervalInMinutes(java.lang.String v)Modify the RotationIntervalInMinutes of the Element access-log
setAttributeValue(ServerTags.ROTATION_INTERVAL_IN_MINUTES, v);
|
public void | setRotationPolicy(java.lang.String v)Modify the RotationPolicy of the Element access-log
setAttributeValue(ServerTags.ROTATION_POLICY, v);
|
public void | setRotationPolicy(java.lang.String v, boolean overwrite)Modify the RotationPolicy of the Element access-log
setAttributeValue(ServerTags.ROTATION_POLICY, v, overwrite);
|
public void | setRotationSuffix(java.lang.String v, boolean overwrite)Modify the RotationSuffix of the Element access-log
setAttributeValue(ServerTags.ROTATION_SUFFIX, v, overwrite);
|
public void | setRotationSuffix(java.lang.String v)Modify the RotationSuffix of the Element access-log
setAttributeValue(ServerTags.ROTATION_SUFFIX, v);
|
public void | validate()
|