01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /* $Id$ */
19:
20: package org.apache.xmlgraphics.ps.dsc.events;
21:
22: import java.io.IOException;
23:
24: import org.apache.xmlgraphics.ps.PSGenerator;
25:
26: /**
27: * Base interface for all DSC comments.
28: */
29: public interface DSCComment extends DSCEvent {
30:
31: /**
32: * Returns the name of the DSC comment.
33: * @return the name of the DSC comment (without the "%%" prefix)
34: */
35: String getName();
36:
37: /**
38: * Parses the value of the DSC comment.
39: * @param value the value
40: */
41: void parseValue(String value);
42:
43: /**
44: * Indicates whether this DSC comment has values.
45: * @return true if the DSC comment has values
46: */
47: boolean hasValues();
48:
49: /**
50: * Indicates whether the DSC comment's value is "Atend".
51: * @return true if the value is "Atend"
52: */
53: boolean isAtend();
54:
55: /**
56: * @see org.apache.xmlgraphics.ps.dsc.events.DSCEvent#generate(
57: * org.apache.xmlgraphics.ps.PSGenerator)
58: */
59: void generate(PSGenerator gen) throws IOException;
60:
61: }
|