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: package org.apache.cocoon.xml.xlink;
18:
19: import org.xml.sax.Attributes;
20: import org.xml.sax.SAXException;
21:
22: /**
23: * This interface indicates an XLinkHandler that uses the same
24: * event driven design patterns that SAX enforces.
25: *
26: * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
27: * @version CVS $Id: XLinkHandler.java 433543 2006-08-22 06:22:54Z crossley $
28: */
29: public interface XLinkHandler {
30:
31: void simpleLink(String href, String role, String arcrole,
32: String title, String show, String actuate, String uri,
33: String name, String raw, Attributes attr)
34: throws SAXException;
35:
36: void startExtendedLink(String role, String title, String uri,
37: String name, String raw, Attributes attr)
38: throws SAXException;
39:
40: void endExtendedLink(String uri, String name, String raw)
41: throws SAXException;
42:
43: void startLocator(String href, String role, String title,
44: String label, String uri, String name, String raw,
45: Attributes attr) throws SAXException;
46:
47: void endLocator(String uri, String name, String raw)
48: throws SAXException;
49:
50: void startArc(String arcrole, String title, String show,
51: String actuate, String from, String to, String uri,
52: String name, String raw, Attributes attr)
53: throws SAXException;
54:
55: void endArc(String uri, String name, String raw)
56: throws SAXException;
57:
58: void linkResource(String role, String title, String label,
59: String uri, String name, String raw, Attributes attr)
60: throws SAXException;
61:
62: void linkTitle(String uri, String name, String raw, Attributes attr)
63: throws SAXException;
64:
65: }
|