| java.lang.Object org.xml.sax.helpers.DefaultHandler org.jasig.portal.channels.adminnav.XMLLinksHandler
XMLLinksHandler | public class XMLLinksHandler extends DefaultHandler (Code) | | Handler for receiving SAX events from parsing a set of links having the
following structure.
<links [bundleResolver="bundleBase"]>
<link labelId="id-unique-within-resolver"
channelFunctionalName="functional-name-of-channel">
[<parameter name="some-Name" value="some-value" />
<parameter ..../>
]
<link...>...</link>
</links>
If an instance of ILabelResolver is not passed into this class and there
is no bundleResolver declared by the links element then an
IllegalStateException will be thrown. Similarly, if a null
ILinkRegistrar instance is passed in an IllegalStateException will be
thrown.
author: mboyd@sungardsct.com since: 2.6 |
Constructor Summary | |
public | XMLLinksHandler() Default constructor which obtains an instance of ILinkRegistrar from
AdminNavChannel's static getLinkRegistrar() method. | public | XMLLinksHandler(ILinkRegistrar registrar) Constructor accepting an instance of ILinkRegistrar into which all link
definitions will be added. | public | XMLLinksHandler(ILinkRegistrar registrar, ILabelResolver resolver) Constructor accepting an instance of ILinkRegistrar into which all link
definitions will be added. |
XMLLinksHandler | public XMLLinksHandler()(Code) | | Default constructor which obtains an instance of ILinkRegistrar from
AdminNavChannel's static getLinkRegistrar() method.
|
XMLLinksHandler | public XMLLinksHandler(ILinkRegistrar registrar)(Code) | | Constructor accepting an instance of ILinkRegistrar into which all link
definitions will be added.
|
XMLLinksHandler | public XMLLinksHandler(ILinkRegistrar registrar, ILabelResolver resolver)(Code) | | Constructor accepting an instance of ILinkRegistrar into which all link
definitions will be added. Also accepts an ILabelResolver instance
which will be used to resolve labels for all links unless a
bundleResolver is specified on the outermost links element.
|
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|