public class Reference extends AbstractWingElement implements StructuralElement
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
A_REPOSITORY_ID
The name of the repositoryIdentifier attribute
|
static java.lang.String |
A_TYPE
An optional type of the referenced object.
|
static java.lang.String |
A_URL
The name of the objectIdentifier attribute
|
static java.lang.String |
E_REFERENCE
The name of the reference element
|
contextA_ID, A_NAME, A_RENDER| Modifier | Constructor and Description |
|---|---|
protected |
Reference(WingContext context,
java.lang.Object object)
Construct a new object reference.
|
| Modifier and Type | Method and Description |
|---|---|
ReferenceSet |
addReferenceSet(java.lang.String type)
Add a nested include set
|
ReferenceSet |
addReferenceSet(java.lang.String type,
java.lang.String orderBy)
Add a nested reference set
|
ReferenceSet |
addReferenceSet(java.lang.String type,
java.lang.String orderBy,
java.lang.String render)
Add a nested reference set.
|
void |
dispose()
dispose
|
void |
toSAX(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
Translate this metadata inclusion set to SAX
|
endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final java.lang.String E_REFERENCE
public static final java.lang.String A_REPOSITORY_ID
public static final java.lang.String A_TYPE
public static final java.lang.String A_URL
protected Reference(WingContext context, java.lang.Object object) throws WingException
context - (Required) The context this element is contained in, such as
where to route SAX events and what i18n catalogue to use.object - (Required) The referenced object.WingExceptionpublic ReferenceSet addReferenceSet(java.lang.String type, java.lang.String orderBy, java.lang.String render) throws WingException
type - (required) The reference type, see referenceSet.TYPESorderBy - (May be null) A statement of ordering for reference sets.render - (May be null) a rendering hint used to override the default
display of the element.WingExceptionpublic ReferenceSet addReferenceSet(java.lang.String type, java.lang.String orderBy) throws WingException
type - (required) The reference type, see referenceSet.TYPESorderBy - (May be null) A statement of ordering for reference sets.WingExceptionpublic ReferenceSet addReferenceSet(java.lang.String type) throws WingException
type - (required) The include type, see includeSet.TYPESWingExceptionpublic 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 WingElementcontentHandler - (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.SAXExceptionpublic void dispose()
dispose in interface WingElementdispose in class AbstractWingElementCopyright © 2018 DuraSpace. All Rights Reserved.