Package org.ametys.runtime.model
Class TemporaryViewReference
- java.lang.Object
-
- org.ametys.runtime.model.TemporaryViewReference
-
- All Implemented Interfaces:
ViewItem
,Labelable
,ModifiableLabelable
public class TemporaryViewReference extends Object implements ViewItem
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 Constructor Description TemporaryViewReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyTo(ViewItem item)
Copy the current view item in the given one.ViewItem
createInstance()
Create an instance ofViewItem
boolean
equals(Object obj, boolean checkDetails)
Indicates whether some other object is "equal to" this one.I18nizableText
getDescription()
Retrieves the description.I18nizableText
getLabel()
Retrieves the label.String
getName()
Get the name.void
setDescription(I18nizableText description)
Set the description.void
setLabel(I18nizableText label)
Set the label.void
setName(String name)
Set the name.Map<String,Object>
toJSON(DefinitionContext context)
Converts the view item in a JSON map
-
-
-
Constructor Detail
-
TemporaryViewReference
public TemporaryViewReference()
-
-
Method Detail
-
setName
public void setName(String name)
Description copied from interface:ModifiableLabelable
Set the name.- Specified by:
setName
in interfaceModifiableLabelable
- Parameters:
name
- the name.
-
setLabel
public void setLabel(I18nizableText label)
Description copied from interface:ModifiableLabelable
Set the label.- Specified by:
setLabel
in interfaceModifiableLabelable
- Parameters:
label
- the label.
-
setDescription
public void setDescription(I18nizableText description)
Description copied from interface:ModifiableLabelable
Set the description.- Specified by:
setDescription
in interfaceModifiableLabelable
- Parameters:
description
- the description.
-
getLabel
public I18nizableText getLabel()
Description copied from interface:Labelable
Retrieves the label.
-
getDescription
public I18nizableText getDescription()
Description copied from interface:Labelable
Retrieves the description.- Specified by:
getDescription
in interfaceLabelable
- Returns:
- the description.
-
toJSON
public Map<String,Object> toJSON(DefinitionContext context) throws ProcessingException
Description copied from interface:ViewItem
Converts the view item in a JSON map- Specified by:
toJSON
in 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
-
equals
public boolean equals(Object obj, boolean checkDetails)
Description copied from interface:ViewItem
Indicates whether some other object is "equal to" this one.
-
createInstance
public ViewItem createInstance()
Description copied from interface:ViewItem
Create an instance ofViewItem
- Specified by:
createInstance
in interfaceViewItem
- Returns:
- the created instance
-
-