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("HttpFileCache\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.GLOBALLY_ENABLED)) return "true".trim();
if(attr.equals(ServerTags.FILE_CACHING_ENABLED)) return "on".trim();
if(attr.equals(ServerTags.MAX_AGE_IN_SECONDS)) return "30".trim();
if(attr.equals(ServerTags.MEDIUM_FILE_SIZE_LIMIT_IN_BYTES)) return "537600".trim();
if(attr.equals(ServerTags.MEDIUM_FILE_SPACE_IN_BYTES)) return "10485760".trim();
if(attr.equals(ServerTags.SMALL_FILE_SIZE_LIMIT_IN_BYTES)) return "2048".trim();
if(attr.equals(ServerTags.SMALL_FILE_SPACE_IN_BYTES)) return "1048576".trim();
if(attr.equals(ServerTags.FILE_TRANSMISSION_ENABLED)) return "false".trim();
if(attr.equals(ServerTags.MAX_FILES_COUNT)) return "1024".trim();
if(attr.equals(ServerTags.HASH_INIT_SIZE)) return "0".trim();
return null;
|
public static java.lang.String | getDefaultFileCachingEnabled()Get the default value of FileCachingEnabled from dtd
return "on".trim();
|
public static java.lang.String | getDefaultFileTransmissionEnabled()Get the default value of FileTransmissionEnabled from dtd
return "false".trim();
|
public static java.lang.String | getDefaultGloballyEnabled()Get the default value of GloballyEnabled from dtd
return "true".trim();
|
public static java.lang.String | getDefaultHashInitSize()Get the default value of HashInitSize from dtd
return "0".trim();
|
public static java.lang.String | getDefaultMaxAgeInSeconds()Get the default value of MaxAgeInSeconds from dtd
return "30".trim();
|
public static java.lang.String | getDefaultMaxFilesCount()Get the default value of MaxFilesCount from dtd
return "1024".trim();
|
public static java.lang.String | getDefaultMediumFileSizeLimitInBytes()Get the default value of MediumFileSizeLimitInBytes from dtd
return "537600".trim();
|
public static java.lang.String | getDefaultMediumFileSpaceInBytes()Get the default value of MediumFileSpaceInBytes from dtd
return "10485760".trim();
|
public static java.lang.String | getDefaultSmallFileSizeLimitInBytes()Get the default value of SmallFileSizeLimitInBytes from dtd
return "2048".trim();
|
public static java.lang.String | getDefaultSmallFileSpaceInBytes()Get the default value of SmallFileSpaceInBytes from dtd
return "1048576".trim();
|
public java.lang.String | getFileCachingEnabled()Getter for FileCachingEnabled of the Element http-file-cache
return getAttributeValue(ServerTags.FILE_CACHING_ENABLED);
|
public java.lang.String | getHashInitSize()Getter for HashInitSize of the Element http-file-cache
return getAttributeValue(ServerTags.HASH_INIT_SIZE);
|
public java.lang.String | getMaxAgeInSeconds()Getter for MaxAgeInSeconds of the Element http-file-cache
return getAttributeValue(ServerTags.MAX_AGE_IN_SECONDS);
|
public java.lang.String | getMaxFilesCount()Getter for MaxFilesCount of the Element http-file-cache
return getAttributeValue(ServerTags.MAX_FILES_COUNT);
|
public java.lang.String | getMediumFileSizeLimitInBytes()Getter for MediumFileSizeLimitInBytes of the Element http-file-cache
return getAttributeValue(ServerTags.MEDIUM_FILE_SIZE_LIMIT_IN_BYTES);
|
public java.lang.String | getMediumFileSpaceInBytes()Getter for MediumFileSpaceInBytes of the Element http-file-cache
return getAttributeValue(ServerTags.MEDIUM_FILE_SPACE_IN_BYTES);
|
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 = "http-file-cache";
return (null != ret ? ret.trim() : null);
|
public java.lang.String | getSmallFileSizeLimitInBytes()Getter for SmallFileSizeLimitInBytes of the Element http-file-cache
return getAttributeValue(ServerTags.SMALL_FILE_SIZE_LIMIT_IN_BYTES);
|
public java.lang.String | getSmallFileSpaceInBytes()Getter for SmallFileSpaceInBytes of the Element http-file-cache
return getAttributeValue(ServerTags.SMALL_FILE_SPACE_IN_BYTES);
|
void | initialize(int options)
|
public boolean | isFileTransmissionEnabled()Getter for FileTransmissionEnabled of the Element http-file-cache
return toBoolean(getAttributeValue(ServerTags.FILE_TRANSMISSION_ENABLED));
|
public boolean | isGloballyEnabled()Getter for GloballyEnabled of the Element http-file-cache
return toBoolean(getAttributeValue(ServerTags.GLOBALLY_ENABLED));
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public void | setFileCachingEnabled(java.lang.String v)Modify the FileCachingEnabled of the Element http-file-cache
setAttributeValue(ServerTags.FILE_CACHING_ENABLED, v);
|
public void | setFileCachingEnabled(java.lang.String v, boolean overwrite)Modify the FileCachingEnabled of the Element http-file-cache
setAttributeValue(ServerTags.FILE_CACHING_ENABLED, v, overwrite);
|
public void | setFileTransmissionEnabled(boolean v, boolean overwrite)Modify the FileTransmissionEnabled of the Element http-file-cache
setAttributeValue(ServerTags.FILE_TRANSMISSION_ENABLED, ""+(v==true), overwrite);
|
public void | setFileTransmissionEnabled(boolean v)Modify the FileTransmissionEnabled of the Element http-file-cache
setAttributeValue(ServerTags.FILE_TRANSMISSION_ENABLED, ""+(v==true));
|
public void | setGloballyEnabled(boolean v, boolean overwrite)Modify the GloballyEnabled of the Element http-file-cache
setAttributeValue(ServerTags.GLOBALLY_ENABLED, ""+(v==true), overwrite);
|
public void | setGloballyEnabled(boolean v)Modify the GloballyEnabled of the Element http-file-cache
setAttributeValue(ServerTags.GLOBALLY_ENABLED, ""+(v==true));
|
public void | setHashInitSize(java.lang.String v, boolean overwrite)Modify the HashInitSize of the Element http-file-cache
setAttributeValue(ServerTags.HASH_INIT_SIZE, v, overwrite);
|
public void | setHashInitSize(java.lang.String v)Modify the HashInitSize of the Element http-file-cache
setAttributeValue(ServerTags.HASH_INIT_SIZE, v);
|
public void | setMaxAgeInSeconds(java.lang.String v, boolean overwrite)Modify the MaxAgeInSeconds of the Element http-file-cache
setAttributeValue(ServerTags.MAX_AGE_IN_SECONDS, v, overwrite);
|
public void | setMaxAgeInSeconds(java.lang.String v)Modify the MaxAgeInSeconds of the Element http-file-cache
setAttributeValue(ServerTags.MAX_AGE_IN_SECONDS, v);
|
public void | setMaxFilesCount(java.lang.String v, boolean overwrite)Modify the MaxFilesCount of the Element http-file-cache
setAttributeValue(ServerTags.MAX_FILES_COUNT, v, overwrite);
|
public void | setMaxFilesCount(java.lang.String v)Modify the MaxFilesCount of the Element http-file-cache
setAttributeValue(ServerTags.MAX_FILES_COUNT, v);
|
public void | setMediumFileSizeLimitInBytes(java.lang.String v, boolean overwrite)Modify the MediumFileSizeLimitInBytes of the Element http-file-cache
setAttributeValue(ServerTags.MEDIUM_FILE_SIZE_LIMIT_IN_BYTES, v, overwrite);
|
public void | setMediumFileSizeLimitInBytes(java.lang.String v)Modify the MediumFileSizeLimitInBytes of the Element http-file-cache
setAttributeValue(ServerTags.MEDIUM_FILE_SIZE_LIMIT_IN_BYTES, v);
|
public void | setMediumFileSpaceInBytes(java.lang.String v, boolean overwrite)Modify the MediumFileSpaceInBytes of the Element http-file-cache
setAttributeValue(ServerTags.MEDIUM_FILE_SPACE_IN_BYTES, v, overwrite);
|
public void | setMediumFileSpaceInBytes(java.lang.String v)Modify the MediumFileSpaceInBytes of the Element http-file-cache
setAttributeValue(ServerTags.MEDIUM_FILE_SPACE_IN_BYTES, v);
|
public void | setSmallFileSizeLimitInBytes(java.lang.String v, boolean overwrite)Modify the SmallFileSizeLimitInBytes of the Element http-file-cache
setAttributeValue(ServerTags.SMALL_FILE_SIZE_LIMIT_IN_BYTES, v, overwrite);
|
public void | setSmallFileSizeLimitInBytes(java.lang.String v)Modify the SmallFileSizeLimitInBytes of the Element http-file-cache
setAttributeValue(ServerTags.SMALL_FILE_SIZE_LIMIT_IN_BYTES, v);
|
public void | setSmallFileSpaceInBytes(java.lang.String v, boolean overwrite)Modify the SmallFileSpaceInBytes of the Element http-file-cache
setAttributeValue(ServerTags.SMALL_FILE_SPACE_IN_BYTES, v, overwrite);
|
public void | setSmallFileSpaceInBytes(java.lang.String v)Modify the SmallFileSpaceInBytes of the Element http-file-cache
setAttributeValue(ServerTags.SMALL_FILE_SPACE_IN_BYTES, v);
|
public void | validate()
|