Sidar, principal.
>>contenido
Fundación Sidar - Acceso Universal
Seminario SIDAR
Principal >> Aplicación: UAW >> Documentación de las clases java

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

Field Summary
private java.util.Properties _properties
protected java.lang.String altText
static int ASCII
protected boolean BreakBeforeBR
protected boolean BurstSlides
protected int CharEncoding
static int DOCTYPE_AUTO
static int DOCTYPE_LOOSE
static int DOCTYPE_OMIT
static int DOCTYPE_STRICT
static int DOCTYPE_USER
protected int docTypeMode
protected java.lang.String docTypeStr
protected boolean DropEmptyParas
protected boolean DropFontTags
protected boolean Emacs
protected boolean EncloseBlockText
protected boolean EncloseBodyText
protected java.lang.String errfile
protected boolean FixBackslash
protected boolean FixComments
protected boolean HideEndTags
protected boolean IndentAttributes
protected boolean IndentContent
static int ISO2022
protected boolean KeepFileTimes
static int LATIN1
protected boolean LiteralAttribs
protected boolean LogicalEmphasis
static int MACROMAN
protected boolean MakeClean
protected boolean NumEntities
protected boolean OnlyErrors
protected boolean overwrite
protected boolean Quiet
protected boolean QuoteAmpersand
protected boolean QuoteMarks
protected boolean QuoteNbsp
static int RAW
protected boolean RawOut
protected boolean ShowWarnings
protected java.lang.String slidestyle
protected boolean SmartIndent
protected int spaces
protected int tabsize
protected boolean TidyMark
protected org.w3c.tidy.TagTable tt
protected boolean UpperCaseAttrs
protected boolean UpperCaseTags
static int UTF8
protected boolean Word2000
protected boolean WrapAsp
protected boolean WrapAttVals
protected boolean WrapJste
protected int wraplen
protected boolean WrapPhp
protected boolean WrapScriptlets
protected boolean WrapSection
protected boolean writeback
protected boolean xHTML
protected boolean XmlOut
protected boolean XmlPi
protected boolean XmlPIs
protected boolean XmlSpace
protected boolean XmlTags
Constructor Summary
Configuration ()
Method Summary
void addProps (java.util.Properties p)
void adjust ()
java.lang.String getPropertyValue (java.lang.String key)
Consulta del valor d'una propietat.
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)
Afegit per obligació, però de moment no fa res, perquè es podria perdre consistència
java.util.Properties setValorsDefecte ()
Inicialitza les propietats amb uns mínims valors establerts per programa.
Methods inherited from class uaw.Configuracio
llegirProperties, parseBool, parseInt, salvarProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

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
Constructor Detail

Configuration

public Configuration()
Method Detail

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)
Afegit per obligació, però de moment no fa res, perquè es podria perdre consistència
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 del valor d'una propietat.

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)