|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.wing.element.AbstractWingElement
org.dspace.app.xmlui.wing.element.Container
org.dspace.app.xmlui.wing.element.TextContainer
org.dspace.app.xmlui.wing.element.Metadata
public class Metadata
This is a class representing an individual metadata field in pseudo-dublin core format. The metadata elements carries generic metadata information in the form of an attribute-value pair.
| Field Summary | |
|---|---|
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 |
| Fields inherited from class org.dspace.app.xmlui.wing.element.Container |
|---|
contents |
| Fields inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement |
|---|
context |
| Fields inherited from interface org.dspace.app.xmlui.wing.element.MetadataElement |
|---|
A_REPOSITORY_IDENTIFIER |
| Constructor Summary | |
|---|---|
protected |
Metadata(WingContext context,
String element,
String qualifier,
String language,
boolean allowMultiple)
Construct a new metadata. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.dspace.app.xmlui.wing.element.TextContainer |
|---|
addContent, addContent, addContent |
| Methods inherited from class org.dspace.app.xmlui.wing.element.Container |
|---|
dispose |
| Methods inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement |
|---|
endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String E_METADATA
public static final String A_ELEMENT
public static final String A_QUALIFIER
public static final String A_LANGUAGE
| Constructor Detail |
|---|
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?
WingException| Method Detail |
|---|
protected 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 metadata
public 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.
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||