org.w3c.tidy
Class Configuration
java.lang.Object
|
+--uaw.Configuracio
|
+--org.w3c.tidy.Configuration
-
All Implemented Interfaces:
-
java.io.Serializable
-
public class Configuration
-
extends Configuracio
-
implements java.io.Serializable
Clase de Tidy adaptada a las necesidades del paquete uaw.
-
See Also:
-
Serialized Form
Method Summary
|
void
|
addProps
(java.util.Properties p)
|
void
|
adjust ()
|
java.lang.String
|
getPropertyValue
(java.lang.String key)
Consulta el valor de una propiedad.
|
private void
|
parseBlockTagNames (java.lang.String s,
java.lang.String option)
|
private static boolean
|
parseBool
(java.lang.String s, java.lang.String option)
|
private static int
|
parseCharEncoding (java.lang.String s,
java.lang.String option)
|
protected
java.lang.String
|
parseDocType
(java.lang.String s, java.lang.String option)
|
private void
|
parseEmptyTagNames (java.lang.String s,
java.lang.String option)
|
void
|
parseFile
(java.lang.String filename)
|
private boolean
|
parseIndent
(java.lang.String s, java.lang.String option)
|
private void
|
parseInlineTagNames (java.lang.String s,
java.lang.String option)
|
private static int
|
parseInt
(java.lang.String s, java.lang.String option)
|
private static boolean
|
parseInvBool
(java.lang.String s, java.lang.String option)
|
private static
java.lang.String
|
parseName
(java.lang.String s, java.lang.String option)
|
private void
|
parsePreTagNames (java.lang.String s,
java.lang.String option)
|
private void
|
parseProps
()
|
void
|
setPropertyValue (java.lang.String key,
java.lang.String value)
Método necesario por la implementación; su funcionalidad se ha anulado, pues podría perder consistencia |
java.util.Properties
|
setValorsDefecte
()
Inicializa las propiedades con unos valores mínimos
establecidos por programa.
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify,
notifyAll, toString, wait, wait, wait
|
RAW
public static final int RAW
-
-
See Also:
-
Constant Field Values
ASCII
public static final int ASCII
-
-
See Also:
-
Constant Field Values
LATIN1
public static final int LATIN1
-
-
See Also:
-
Constant Field Values
UTF8
public static final int UTF8
-
-
See Also:
-
Constant Field Values
ISO2022
public static final int ISO2022
-
-
See Also:
-
Constant Field Values
MACROMAN
public static final int MACROMAN
-
-
See Also:
-
Constant Field Values
DOCTYPE_OMIT
public static final int DOCTYPE_OMIT
-
-
See Also:
-
Constant Field Values
DOCTYPE_AUTO
public static final int DOCTYPE_AUTO
-
-
See Also:
-
Constant Field Values
DOCTYPE_STRICT
public static final int DOCTYPE_STRICT
-
-
See Also:
-
Constant Field Values
DOCTYPE_LOOSE
public static final int DOCTYPE_LOOSE
-
-
See Also:
-
Constant Field Values
DOCTYPE_USER
public static final int DOCTYPE_USER
-
-
See Also:
-
Constant Field Values
spaces
protected int spaces
wraplen
protected int wraplen
CharEncoding
protected int CharEncoding
tabsize
protected int tabsize
docTypeMode
protected int docTypeMode
altText
protected java.lang.String altText
slidestyle
protected java.lang.String slidestyle
docTypeStr
protected java.lang.String docTypeStr
errfile
protected java.lang.String errfile
writeback
protected boolean writeback
OnlyErrors
protected boolean OnlyErrors
ShowWarnings
protected boolean ShowWarnings
Quiet
protected boolean Quiet
IndentContent
protected boolean IndentContent
SmartIndent
protected boolean SmartIndent
HideEndTags
protected boolean HideEndTags
XmlTags
protected boolean XmlTags
XmlOut
protected boolean XmlOut
xHTML
protected boolean xHTML
XmlPi
protected boolean XmlPi
RawOut
protected boolean RawOut
UpperCaseTags
protected boolean UpperCaseTags
UpperCaseAttrs
protected boolean UpperCaseAttrs
MakeClean
protected boolean MakeClean
LogicalEmphasis
protected boolean LogicalEmphasis
DropFontTags
protected boolean DropFontTags
DropEmptyParas
protected boolean DropEmptyParas
FixComments
protected boolean FixComments
BreakBeforeBR
protected boolean BreakBeforeBR
BurstSlides
protected boolean BurstSlides
NumEntities
protected boolean NumEntities
QuoteMarks
protected boolean QuoteMarks
QuoteNbsp
protected boolean QuoteNbsp
QuoteAmpersand
protected boolean QuoteAmpersand
WrapAttVals
protected boolean WrapAttVals
WrapScriptlets
protected boolean WrapScriptlets
WrapSection
protected boolean WrapSection
WrapAsp
protected boolean WrapAsp
WrapJste
protected boolean WrapJste
WrapPhp
protected boolean WrapPhp
FixBackslash
protected boolean FixBackslash
IndentAttributes
protected boolean IndentAttributes
XmlPIs
protected boolean XmlPIs
XmlSpace
protected boolean XmlSpace
EncloseBodyText
protected boolean EncloseBodyText
EncloseBlockText
protected boolean EncloseBlockText
KeepFileTimes
protected boolean KeepFileTimes
Word2000
protected boolean Word2000
TidyMark
protected boolean TidyMark
Emacs
protected boolean Emacs
LiteralAttribs
protected boolean LiteralAttribs
overwrite
protected boolean overwrite
tt
protected org.w3c.tidy.TagTable tt
_properties
private transient java.util.Properties _properties
Configuration
public Configuration()
addProps
public void addProps(java.util.Properties p)
parseFile
public void parseFile(java.lang.String filename)
parseProps
private void parseProps()
adjust
public void adjust()
setPropertyValue
public void setPropertyValue(java.lang.String key,
java.lang.String value)
-
Método necesario por la implementación; su funcionalidad se ha anulado, pues podría perder consistencia
-
-
Specified by:
-
setPropertyValue
in class Configuracio
-
-
Parameters:
-
key
- el nom de la propietat
-
value
- el valor a assigna
parseInt
private static int parseInt(java.lang.String s,
java.lang.String option)
parseBool
private static boolean parseBool(java.lang.String s,
java.lang.String option)
parseInvBool
private static boolean parseInvBool(java.lang.String s,
java.lang.String option)
parseName
private static java.lang.String parseName(java.lang.String s,
java.lang.String option)
parseCharEncoding
private static int parseCharEncoding(java.lang.String s,
java.lang.String option)
parseIndent
private boolean parseIndent(java.lang.String s,
java.lang.String option)
parseInlineTagNames
private void parseInlineTagNames(java.lang.String s,
java.lang.String option)
parseBlockTagNames
private void parseBlockTagNames(java.lang.String s,
java.lang.String option)
parseEmptyTagNames
private void parseEmptyTagNames(java.lang.String s,
java.lang.String option)
parsePreTagNames
private void parsePreTagNames(java.lang.String s,
java.lang.String option)
parseDocType
protected java.lang.String parseDocType(java.lang.String s,
java.lang.String option)
setValorsDefecte
public java.util.Properties setValorsDefecte()
-
Description copied from class:
Configuracio
-
Inicialitza les propietats amb uns mínims valors establerts
per programa.
-
-
Specified by:
-
setValorsDefecte
in class Configuracio
getPropertyValue
public java.lang.String getPropertyValue(java.lang.String key)
-
Description copied from class:
Configuracio
-
Consulta el valor de una propiedad.
-
-
Specified by:
-
getPropertyValue
in class Configuracio
-
-
Parameters:
-
key
- el nom de la propietat
-
Returns:
-
el valor la propietat si existeix o null en cas contrari
-
See Also:
-
java.util.Properties.getProperty(String)