public class PageMeta extends AbstractWingElement implements WingMergeableElement, MetadataElement
| Modifier and Type | Field and Description |
|---|---|
static String |
E_PAGE_META
Name of the pageMeta element
|
contextA_REPOSITORY_IDENTIFIER| Modifier | Constructor and Description |
|---|---|
protected |
PageMeta(WingContext context)
Construct a new pageMeta
|
| Modifier and Type | Method and Description |
|---|---|
Metadata |
addMetadata(String element)
Add metadata about this page.
|
Metadata |
addMetadata(String element,
String qualifier)
Add metadata about this page.
|
Metadata |
addMetadata(String element,
String qualifier,
String language)
Add metadata about this page.
|
Metadata |
addMetadata(String element,
String qualifier,
String language,
boolean allowMultiple)
Add metadata about this page.
|
Trail |
addTrail()
Add a new trail to the page without a link or render attribute.
|
Trail |
addTrail(String target,
String rend)
Add a new trail to the page.
|
void |
addTrailLink(String target,
Message message)
Add a new trail link to the page.
|
void |
addTrailLink(String target,
String characters)
Add a new trail link to the page.
|
void |
dispose()
Dispose
|
Attributes |
merge(Attributes attributes)
Inform this element that it is being merged with an existing element.
|
WingMergeableElement |
mergeChild(String namespace,
String localName,
String qName,
Attributes attributes)
Since metadata can not be merged there are no mergeable children.
|
boolean |
mergeEqual(String namespace,
String localName,
String qName,
Attributes attributes)
Determine if the given SAX event is a PageMeta element.
|
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
Translate this element into SAX events.
|
endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final String E_PAGE_META
protected PageMeta(WingContext context) throws WingException
context - (Required) The context this element is contained in, such as
where to route SAX events and what i18n catalogue to use.WingException - passed through.public Metadata addMetadata(String element, String qualifier, String language, boolean allowMultiple) throws WingException
element - (Required) The metadata element.qualifier - (May be null) The metadata qualifier.language - (May be null) The metadata languageallowMultiple - (Required) determine if multiple metadata elements with the same
element, qualifier and language are allowed.WingException - passed through.public Metadata addMetadata(String element, String qualifier, String language) throws WingException
element - (Required) The metadata element.qualifier - (May be null) The metadata qualifier.language - (May be null) The metadata languageWingException - passed through.public Metadata addMetadata(String element, String qualifier) throws WingException
element - (Required) The metadata element.qualifier - (May be null) The metadata qualifier.WingException - passed through.public Metadata addMetadata(String element) throws WingException
element - (Required) The metadata element.WingException - passed through.public Trail addTrail(String target, String rend) throws WingException
target - (May be null) Target URL for this trail item.rend - (May be null) Special rendering instructionsWingException - passed through.public Trail addTrail() throws WingException
WingException - passed through.public void addTrailLink(String target, String characters) throws WingException
target - (May be null) The Target URL for this trail item.characters - (May be null) The textual contents of this trail item.WingException - passed through.public void addTrailLink(String target, Message message) throws WingException
target - (May be null) The Target URL for this trail item.message - (Required) The textual contents of this trail item to be
translatedWingException - passed through.public boolean mergeEqual(String namespace, String localName, String qName, Attributes attributes) throws SAXException, WingException
mergeEqual in interface WingMergeableElementnamespace - The element's name spacelocalName - The local, unqualified, name for this elementqName - The qualified name for this elementattributes - The element's attributesSAXException - whenever.WingException - whenever.public WingMergeableElement mergeChild(String namespace, String localName, String qName, Attributes attributes) throws SAXException, WingException
mergeChild in interface WingMergeableElementnamespace - The element's name spacelocalName - The local, unqualified, name for this element *qName - The qualified name for this elementattributes - The element's attributesSAXException - whenever.WingException - whenever.public Attributes merge(Attributes attributes) throws SAXException, WingException
merge in interface WingMergeableElementattributes - attributes.SAXException - whenever.WingException - whenever.public void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, org.xml.sax.helpers.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.SAXException - on error.public void dispose()
AbstractWingElementdispose in interface WingElementdispose in class AbstractWingElementCopyright © 2016 DuraSpace. All rights reserved.