public class Reference extends AbstractWingElement implements StructuralElement
| Modifier and Type | Field and Description |
|---|---|
static String |
A_REPOSITORY_ID
The name of the repositoryIdentifier attribute
|
static String |
A_TYPE
An optional type of the referenced object.
|
static String |
A_URL
The name of the objectIdentifier attribute
|
static String |
E_REFERENCE
The name of the reference element
|
contextA_ID, A_NAME, A_RENDER| Modifier | Constructor and Description |
|---|---|
protected |
Reference(WingContext context,
Object object)
Construct a new object reference.
|
| Modifier and Type | Method and Description |
|---|---|
ReferenceSet |
addReferenceSet(String type)
Add a nested include set
|
ReferenceSet |
addReferenceSet(String type,
String orderBy)
Add a nested reference set
|
ReferenceSet |
addReferenceSet(String type,
String orderBy,
String render)
Add a nested reference set.
|
void |
dispose()
Dispose
|
void |
toSAX(ContentHandler contentHandler,
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 String E_REFERENCE
public static final String A_REPOSITORY_ID
public static final String A_TYPE
public static final String A_URL
protected Reference(WingContext context, 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.WingException - if the object cannot be managed.public ReferenceSet addReferenceSet(String type, String orderBy, 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.WingException - passed through.public ReferenceSet addReferenceSet(String type, String orderBy) throws WingException
type - (required) The reference type, see referenceSet.TYPESorderBy - (May be null) A statement of ordering for reference sets.WingException - passed through.public ReferenceSet addReferenceSet(String type) throws WingException
type - (required) The include type, see includeSet.TYPESWingException - passed through.public void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, org.xml.sax.helpers.NamespaceSupport namespaces) throws 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.SAXException - passed through.public void dispose()
AbstractWingElementdispose in interface WingElementdispose in class AbstractWingElementCopyright © 2016 DuraSpace. All rights reserved.