Class ContentStyleDefinition
java.lang.Object
com.aquima.interactions.composer.model.definition.ElementDefinition
com.aquima.interactions.composer.model.definition.ContentStyleDefinition
- All Implemented Interfaces:
IElementDefinition
,Serializable
This class defines a content style.
- Since:
- 6.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
ContentStyleDefinition
(IContentStyleDS datasource) protected
-
Method Summary
Modifier and TypeMethodDescriptionprotected String[]
getType()
This method returns the type of the element.boolean
This method returns a boolean indicating if the content style should be used as default when a content node does not specify a content style, but does define a presentation style.boolean
This method returns a boolean indicating if the content style restricts the type of child styles that are allowed.protected boolean
isValidChild
(ContentStyleDefinition childStyle) Methods inherited from class com.aquima.interactions.composer.model.definition.ElementDefinition
equals, getName, getPresentationStyles, hashCode, isInternalDefinition, setInternalDefinition, setPresentationStyles
-
Constructor Details
-
ContentStyleDefinition
protected ContentStyleDefinition() -
ContentStyleDefinition
-
ContentStyleDefinition
-
-
Method Details
-
isRestricted
public boolean isRestricted()This method returns a boolean indicating if the content style restricts the type of child styles that are allowed.- Returns:
- a boolean indicating if the content style restricts the type of child styles that are allowed.
-
isDefaultStyle
public boolean isDefaultStyle()This method returns a boolean indicating if the content style should be used as default when a content node does not specify a content style, but does define a presentation style.- Returns:
- a boolean indicating if the content style should be used as default.
-
isValidChild
-
getChildren
-
getType
Description copied from interface:IElementDefinition
This method returns the type of the element.- Returns:
- The type of the element the definition represents.
-