public class Metadata extends TextContainer implements MetadataElement
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
A_ELEMENT
The name of the element attribute
|
static java.lang.String |
A_LANGUAGE
The name of the language attribute
|
static java.lang.String |
A_QUALIFIER
The name of the qualifier attribute
|
static java.lang.String |
E_METADATA
The name of the metadata element
|
contextA_REPOSITORY_IDENTIFIER| Modifier | Constructor and Description |
|---|---|
protected |
Metadata(WingContext context,
java.lang.String element,
java.lang.String qualifier,
java.lang.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(java.lang.String element,
java.lang.String qualifier,
java.lang.String language)
Determine if the given element, qualifier, and lang are equal to this
metadata.
|
void |
toSAX(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
Translate 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_METADATA
public static final java.lang.String A_ELEMENT
public static final java.lang.String A_QUALIFIER
public static final java.lang.String A_LANGUAGE
protected Metadata(WingContext context, java.lang.String element, java.lang.String qualifier, java.lang.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(java.lang.String element,
java.lang.String qualifier,
java.lang.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(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.