public class ReferenceSet extends AbstractWingElement implements StructuralElement
| Modifier and Type | Field and Description |
|---|---|
static String |
A_ORDER_BY
The name of the orderBy attribute
|
static String |
A_TYPE
The name of the type attribute
|
static String |
E_REFERENCE_SET
The name of the referenceSet element
|
static String |
TYPE_DETAIL_LIST |
static String |
TYPE_DETAIL_VIEW |
static String |
TYPE_SUMMARY_LIST
The possible interactive division methods: get,post, or multipart.
|
static String |
TYPE_SUMMARY_VIEW |
static String[] |
TYPES
The possible interactive division methods names collected into one array
|
contextA_ID, A_NAME, A_RENDER| Modifier | Constructor and Description |
|---|---|
protected |
ReferenceSet(WingContext context,
boolean childreference,
String name,
String type,
String orderBy,
String rend)
Construct a new referenceSet
|
| Modifier and Type | Method and Description |
|---|---|
Reference |
addReference(Object object)
Add an object reference.
|
void |
dispose()
dispose
|
Head |
setHead()
Set the head element which is the label associated with this referenceset.
|
void |
setHead(Message message)
Set the head element which is the label associated with this referenceset.
|
void |
setHead(String characters)
Set the head element which is the label associated with this referenceset.
|
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
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_SET
public static final String A_ORDER_BY
public static final String A_TYPE
public static final String TYPE_SUMMARY_LIST
public static final String TYPE_SUMMARY_VIEW
public static final String TYPE_DETAIL_LIST
public static final String TYPE_DETAIL_VIEW
public static final String[] TYPES
protected ReferenceSet(WingContext context, boolean childreference, String name, String type, String orderBy, String rend) throws WingException
context - (Required) The context this element is contained in, such as
where to route SAX events and what i18n catalogue to use.childreference - Whether this is a child reference (not requiring a name).name - (May be null) a local identifier used to differentiate the
element from its siblings.type - (Required) The type of reference set which determines the level
of detail for the metadata rendered. See TYPES for a list of
available types.orderBy - (May be null) Determines the ordering of referenced metadata.rend - (May be null) a rendering hint used to override the default
display of the element.WingExceptionpublic Head setHead() throws WingException
WingExceptionpublic void setHead(String characters) throws WingException
characters - (May be null) Unprocessed characters to be referencedWingExceptionpublic void setHead(Message message) throws WingException
message - (Required) A key into the i18n catalogue for translation into
the user's preferred language.WingExceptionpublic Reference addReference(Object object) throws WingException
object - (Required) The referenced object.WingExceptionpublic void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, 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.SAXExceptionpublic void dispose()
dispose in interface WingElementdispose in class AbstractWingElementCopyright © 2014 DuraSpace. All Rights Reserved.