Module io.sf.carte.css4j
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:
ColorDeclarationFormattingContext
,DefaultStyleFormattingContext
public class DefaultDeclarationFormattingContext
extends Object
implements DeclarationFormattingContext, Serializable
Default implementation of a DeclarationFormattingContext.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Ends a property declaration in a rule style (does not apply to inline styles).void
Starts a property declaration in a rule style (does not apply to inline styles).void
writeColon
(SimpleWriter wri) Serialize a colon to aSimpleWriter
.void
writeComma
(SimpleWriter wri) Serialize a comma to aSimpleWriter
.void
Serialize a full paragraph indent to aSimpleWriter
.void
Serialize a semicolon to aSimpleWriter
.void
writeURL
(SimpleWriter wri, String href) 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
.
-