org.dspace.app.xmlui.wing.element
Class Meta

java.lang.Object
  extended by org.dspace.app.xmlui.wing.element.AbstractWingElement
      extended by org.dspace.app.xmlui.wing.element.Meta
All Implemented Interfaces:
WingElement, WingMergeableElement

public class Meta
extends AbstractWingElement
implements WingMergeableElement

A class representing the page division. The body contains any number of divisions (div elements) which group content into interactive and non interactive display blocks.

Author:
Scott Phillips

Field Summary
static String E_META
          The name of the meta element
 
Fields inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement
context
 
Constructor Summary
protected Meta(WingContext context)
           
 
Method Summary
 void dispose()
          dispose
 Attributes merge(Attributes attributes)
          Notify this element that it is being merged.
 WingMergeableElement mergeChild(String namespace, String localName, String qName, Attributes attributes)
          Merge the given sub-domain of metadata elements.
 boolean mergeEqual(String namespace, String localName, String qName, Attributes attributes)
          Determine if the given SAX event is a Meta element.
 PageMeta setPageMeta()
          Set a new page oriented metadata set.
 RepositoryMeta setRepositoryMeta()
          Set a new repository oriented metadata set.
 UserMeta setUserMeta()
          Set a new user oriented metadata set.
 void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces)
          Translate to SAX events
 
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

E_META

public static final String E_META
The name of the meta element

See Also:
Constant Field Values
Constructor Detail

Meta

protected Meta(WingContext context)
        throws WingException
Throws:
WingException
Method Detail

setUserMeta

public UserMeta setUserMeta()
                     throws WingException
Set a new user oriented metadata set.

Returns:
The user oriented metadata set.
Throws:
WingException

setPageMeta

public PageMeta setPageMeta()
                     throws WingException
Set a new page oriented metadata set.

Returns:
The page oriented metadata set.
Throws:
WingException

setRepositoryMeta

public RepositoryMeta setRepositoryMeta()
                                 throws WingException
Set a new repository oriented metadata set.

Returns:
The repository oriented metadata set.
Throws:
WingException

mergeEqual

public boolean mergeEqual(String namespace,
                          String localName,
                          String qName,
                          Attributes attributes)
                   throws SAXException,
                          WingException
Determine if the given SAX event is a Meta element.

Specified by:
mergeEqual in interface WingMergeableElement
Parameters:
namespace - The element's name space
localName - The local, unqualified, name for this element
qName - The qualified name for this element
attributes - The element's attributes
Returns:
True if this WingElement is equivalent to the given SAX Event.
Throws:
SAXException
WingException

mergeChild

public WingMergeableElement mergeChild(String namespace,
                                       String localName,
                                       String qName,
                                       Attributes attributes)
                                throws SAXException,
                                       WingException
Merge the given sub-domain of metadata elements.

Specified by:
mergeChild in interface WingMergeableElement
Parameters:
namespace - The element's name space
localName - The local, unqualified, name for this element *
qName - The qualified name for this element
attributes - The element's attributes
Returns:
The child element
Throws:
SAXException
WingException

merge

public Attributes merge(Attributes attributes)
                 throws SAXException,
                        WingException
Notify this element that it is being merged.

Specified by:
merge in interface WingMergeableElement
Returns:
The attributes for this merged element
Throws:
SAXException
WingException

toSAX

public void toSAX(ContentHandler contentHandler,
                  LexicalHandler lexicalHandler,
                  NamespaceSupport namespaces)
           throws SAXException
Translate to SAX events

Specified by:
toSAX in interface WingElement
Parameters:
contentHandler - (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.
Throws:
SAXException

dispose

public void dispose()
dispose

Specified by:
dispose in interface WingElement
Overrides:
dispose in class AbstractWingElement


Copyright © 2012 DuraSpace. All Rights Reserved.