Package org.ametys.odf.content.code
Interface DisplayCodeProvider
- All Known Implementing Classes:
AbstractStaticProgramItemDisplayCodeProvider
,AmetysDisplayCodeProvider
,AttributeBasedDisplayCodeProvider
,PegaseDisplayCodeProvider
Interface for a provider of a ODF content display code
-
Method Summary
Modifier and TypeMethodDescriptiongetDisplayCode
(Content content) Get the display code of this contentgetId()
Retrieves the id of the content type.getLabel()
Get the labeldefault boolean
isActive()
Determines if the provider is active
-
Method Details
-
getId
Retrieves the id of the content type.- Returns:
- the id.
-
getLabel
Get the label- Returns:
- The label
-
getDisplayCode
Get the display code of this content- Parameters:
content
- the content- Returns:
- the display code
-
isActive
Determines if the provider is active- Returns:
- true if the provider is active
-