org.apache.xmlgraphics.ps.dsc.events
Interface DSCComment
- All Superinterfaces:
- DSCEvent, DSCParserConstants
- All Known Implementing Classes:
- AbstractDSCComment, UnparsedDSCComment
- public interface DSCComment
- extends DSCEvent
Base interface for all DSC comments.
Method Summary |
void |
generate(PSGenerator gen)
Writes the event to the given PSGenerator. |
java.lang.String |
getName()
Returns the name of the DSC comment. |
boolean |
hasValues()
Indicates whether this DSC comment has values. |
boolean |
isAtend()
Indicates whether the DSC comment's value is "Atend". |
void |
parseValue(java.lang.String value)
Parses the value of the DSC comment. |
getName
public java.lang.String getName()
- Returns the name of the DSC comment.
- Returns:
- the name of the DSC comment (without the "%%" prefix)
parseValue
public void parseValue(java.lang.String value)
- Parses the value of the DSC comment.
- Parameters:
value
- the value
hasValues
public boolean hasValues()
- Indicates whether this DSC comment has values.
- Returns:
- true if the DSC comment has values
isAtend
public boolean isAtend()
- Indicates whether the DSC comment's value is "Atend".
- Returns:
- true if the value is "Atend"
generate
public void generate(PSGenerator gen)
throws java.io.IOException
- Description copied from interface:
DSCEvent
- Writes the event to the given PSGenerator.
- Specified by:
generate
in interface DSCEvent
- See Also:
DSCEvent.generate(
org.apache.xmlgraphics.ps.PSGenerator)
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.