Package org.ametys.runtime.model
Class TemporaryViewReference
java.lang.Object
org.ametys.runtime.model.TemporaryViewReference
- All Implemented Interfaces:
ViewItem,Labelable,ModifiableLabelable
Reference to a view to included in another view.
Use this temporary reference only in view parsers, and resolve it before using the first view
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCopy the current view item in the given one.Create an instance ofViewItembooleanIndicates whether some other object is "equal to" this one.Retrieves the description.getLabel()Retrieves the label.getName()Get the name.Retrieves the parent of the view itemvoidsetDescription(I18nizableText description) Set the description.voidsetLabel(I18nizableText label) Set the label.voidSet the name.voidsetParent(ViewItemAccessor parent) Sets the parent of the view itemtoJSON(DefinitionContext context) Converts the view item in a JSON mapvoidtoSAX(ContentHandler contentHandler, DefinitionContext context) Generates SAX events for the view item
-
Constructor Details
-
TemporaryViewReference
public TemporaryViewReference()
-
-
Method Details
-
setName
Description copied from interface:ModifiableLabelableSet the name.- Specified by:
setNamein interfaceModifiableLabelable- Parameters:
name- the name.
-
getName
Description copied from interface:LabelableGet the name. -
setLabel
Description copied from interface:ModifiableLabelableSet the label.- Specified by:
setLabelin interfaceModifiableLabelable- Parameters:
label- the label.
-
setDescription
Description copied from interface:ModifiableLabelableSet the description.- Specified by:
setDescriptionin interfaceModifiableLabelable- Parameters:
description- the description.
-
getLabel
Description copied from interface:LabelableRetrieves the label. -
getDescription
Description copied from interface:LabelableRetrieves the description.- Specified by:
getDescriptionin interfaceLabelable- Returns:
- the description.
-
getParent
Description copied from interface:ViewItemRetrieves the parent of the view item -
setParent
Description copied from interface:ViewItemSets the parent of the view item -
toJSON
Description copied from interface:ViewItemConverts the view item in a JSON map- Specified by:
toJSONin interfaceViewItem- Parameters:
context- the context of the definitions referenced in this view item and/or its children- Returns:
- The view item as a JSON map
- Throws:
ProcessingException- If an error occurs when converting the view item
-
toSAX
Description copied from interface:ViewItemGenerates SAX events for the view item- Specified by:
toSAXin interfaceViewItem- Parameters:
contentHandler- theContentHandlerthat will receive the SAX eventscontext- the context of the definitions included in the view item- Throws:
SAXException- if an error occurs during the SAX events generation
-
equals
Description copied from interface:ViewItemIndicates whether some other object is "equal to" this one. -
createInstance
Description copied from interface:ViewItemCreate an instance ofViewItem- Specified by:
createInstancein interfaceViewItem- Returns:
- the created instance
-
copyTo
Description copied from interface:ViewItemCopy the current view item in the given one. If the view item is an accessor, its view items are not copied
-