public class Metadata extends TextContainer implements MetadataElement
| Modifier and Type | Field and Description |
|---|---|
static String |
A_ELEMENT
The name of the element attribute
|
static String |
A_LANGUAGE
The name of the language attribute
|
static String |
A_QUALIFIER
The name of the qualifier attribute
|
static String |
E_METADATA
The name of the metadata element
|
contextA_REPOSITORY_IDENTIFIER| Modifier | Constructor and Description |
|---|---|
protected |
Metadata(WingContext context,
String element,
String qualifier,
String language,
boolean allowMultiple)
Construct a new metadata.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowMultiple()
If an metadata with the same element, qualifier, and language exist
within the document should this metadata element be added into the
document or should only one metadata be allowed.
|
protected boolean |
equals(String element,
String qualifier,
String language)
Determine if the given element, qualifier, and lang are equal to this
metadata.
|
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
NamespaceSupport namespaces)
Translate into SAX events.
|
addContent, addContent, addContentendElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final String E_METADATA
public static final String A_ELEMENT
public static final String A_QUALIFIER
public static final String A_LANGUAGE
protected Metadata(WingContext context, String element, String qualifier, String language, boolean allowMultiple) throws WingException
element - (Required) The element of this metadataqualifier - (May be null) The qualifier of this metadatalanguage - (May be null) The language of this metadataallowMultiple - (Required) Are multiple metadata elements with the same element,
qualifier, and language allowed?WingExceptionprotected boolean allowMultiple()
protected boolean equals(String element, String qualifier, String language)
element - (Required) The element of this metadataqualifier - (May be null) The qualifier of this metadatalanguage - (May be null) The language of this metadatapublic void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces) throws 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.SAXExceptionCopyright © 2015 DuraSpace. All Rights Reserved.