Package io.sf.carte.doc.style.css.om
Class DefaultDeclarationFormattingContext
java.lang.Object
io.sf.carte.doc.style.css.om.DefaultDeclarationFormattingContext
- All Implemented Interfaces:
DeclarationFormattingContext
,Serializable
- Direct Known Subclasses:
DefaultStyleFormattingContext
,RGBColorDeclarationFormattingContext
public class DefaultDeclarationFormattingContext
extends Object
implements DeclarationFormattingContext, Serializable
Default implementation of a DeclarationFormattingContext.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
endPropertyDeclaration
(io.sf.carte.util.SimpleWriter wri) Ends a property declaration in a rule style (does not apply to inline styles).void
startPropertyDeclaration
(io.sf.carte.util.SimpleWriter wri) Starts a property declaration in a rule style (does not apply to inline styles).void
writeColon
(io.sf.carte.util.SimpleWriter wri) Serialize a colon to aSimpleWriter
.void
writeComma
(io.sf.carte.util.SimpleWriter wri) Serialize a comma to aSimpleWriter
.void
writeFullIndent
(io.sf.carte.util.SimpleWriter wri) Serialize a full paragraph indent to aSimpleWriter
.void
writeSemiColon
(io.sf.carte.util.SimpleWriter wri) Serialize a semicolon to aSimpleWriter
.void
Serialize a URL/URI to aSimpleWriter
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.sf.carte.doc.style.css.DeclarationFormattingContext
writeMinifiedValue, writeValue
-
Constructor Details
-
DefaultDeclarationFormattingContext
public DefaultDeclarationFormattingContext()
-
-
Method Details
-
endPropertyDeclaration
Description copied from interface:DeclarationFormattingContext
Ends a property declaration in a rule style (does not apply to inline styles).It is called after
DeclarationFormattingContext.writeSemiColon(SimpleWriter)
.- Specified by:
endPropertyDeclaration
in interfaceDeclarationFormattingContext
- Parameters:
wri
- the writer.- Throws:
IOException
- if an I/O problem happens while writing to theSimpleWriter
.
-
startPropertyDeclaration
Description copied from interface:DeclarationFormattingContext
Starts a property declaration in a rule style (does not apply to inline styles).It is called before writing the property name.
- Specified by:
startPropertyDeclaration
in interfaceDeclarationFormattingContext
- Parameters:
wri
- the writer.- Throws:
IOException
- if an I/O problem happens while writing to theSimpleWriter
.
-
writeColon
Description copied from interface:DeclarationFormattingContext
Serialize a colon to aSimpleWriter
.- Specified by:
writeColon
in interfaceDeclarationFormattingContext
- Parameters:
wri
- the writer.- Throws:
IOException
- if an I/O problem happens while writing to theSimpleWriter
.
-
writeComma
Description copied from interface:DeclarationFormattingContext
Serialize a comma to aSimpleWriter
.- Specified by:
writeComma
in interfaceDeclarationFormattingContext
- Parameters:
wri
- the writer.- Throws:
IOException
- if an I/O problem happens while writing to theSimpleWriter
.
-
writeFullIndent
Description copied from interface:DeclarationFormattingContext
Serialize a full paragraph indent to aSimpleWriter
.- Specified by:
writeFullIndent
in interfaceDeclarationFormattingContext
- Parameters:
wri
- the writer.- Throws:
IOException
- if an I/O problem happens while writing to theSimpleWriter
.
-
writeSemiColon
Description copied from interface:DeclarationFormattingContext
Serialize a semicolon to aSimpleWriter
.Called after writing the property name.
- Specified by:
writeSemiColon
in interfaceDeclarationFormattingContext
- Parameters:
wri
- the writer.- Throws:
IOException
- if an I/O problem happens while writing to theSimpleWriter
.
-
writeURL
Description copied from interface:DeclarationFormattingContext
Serialize a URL/URI to aSimpleWriter
.- Specified by:
writeURL
in interfaceDeclarationFormattingContext
- Parameters:
wri
- the writer.href
- the URI.- Throws:
IOException
- if an I/O problem happens while writing to theSimpleWriter
.
-