public class Xref extends TextContainer implements StructuralElement
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
A_TARGET
The name of the target attribute
|
static java.lang.String |
E_XREF
The name of the xref element
|
contextA_ID, A_NAME, A_RENDER| Modifier | Constructor and Description |
|---|---|
protected |
Xref(WingContext context,
java.lang.String target)
Construct a new xref link.
|
protected |
Xref(WingContext context,
java.lang.String target,
java.lang.String rend)
Construct a new xref link.
|
protected |
Xref(WingContext context,
java.lang.String target,
java.lang.String rend,
java.lang.String name)
Construct a new xref link.
|
| Modifier and Type | Method and Description |
|---|---|
void |
toSAX(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
Translate this element and all contained elements into SAX events.
|
addContent, addContent, addContentendElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final java.lang.String E_XREF
public static final java.lang.String A_TARGET
protected Xref(WingContext context, java.lang.String target, java.lang.String rend, java.lang.String name) throws WingException
context - (Required) The context this element is contained intarget - (Required) A target URL for the references a destination for
the xref.rend - (May be null) A special rendering instruction for this xref.name - (May be null) a local identifier used to differentiate the
element from its siblings.WingExceptionprotected Xref(WingContext context, java.lang.String target, java.lang.String rend) throws WingException
context - (Required) The context this element is contained intarget - (Required) A target URL for the references a destination for
the xref.rend - (May be null) A special rendering instruction for this xref.WingExceptionprotected Xref(WingContext context, java.lang.String target) throws WingException
context - (Required) The context this element is contained intarget - (Required) A target URL for the references a destination for
the xref.WingExceptionpublic void toSAX(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
throws org.xml.sax.SAXException
toSAX in interface WingElementtoSAX in class ContainercontentHandler - (Required) The registered contentHandler where SAX events
should be routed too.lexicalHandler - (Required) The registered lexicalHandler where lexical
events (such as CDATA, DTD, etc) should be routed too.namespaces - (Required) SAX Helper class to keep track of namespaces able
to determine the correct prefix for a given namespace URI.org.xml.sax.SAXExceptionCopyright © 2014 DuraSpace. All Rights Reserved.