Class XmlContentStyleDS
java.lang.Object
com.aquima.interactions.foundation.report.ReportingDS
com.aquima.interactions.composer.ds.xml.r12.parsing.XmlContentStyleDS
- All Implemented Interfaces:
IContentStyleDS
,IElementDS
,IReportingDS
Xml datasource implementation.
- Since:
- 7.2
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
XmlContentStyleDS
(IInitializationReport report, IXmlNode node) -
Method Summary
Modifier and TypeMethodDescriptionString[]
This method returns an array of style names that are allowed for content items that are direct child nodes of the content item with this style.getName()
This method returns the (unique) name of the element.String[]
This method returns the presentation styles that should be used when including the content element that is referred to.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.Methods inherited from class com.aquima.interactions.foundation.report.ReportingDS
addError, addMessage, getCategory, getReport
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
-
Constructor Details
-
Method Details
-
getChildren
Description copied from interface:IContentStyleDS
This method returns an array of style names that are allowed for content items that are direct child nodes of the content item with this style.- Specified by:
getChildren
in interfaceIContentStyleDS
- Returns:
- The array of style names that are allowed as child style.
-
isDefault
public boolean isDefault()Description copied from interface:IContentStyleDS
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.- Specified by:
isDefault
in interfaceIContentStyleDS
- Returns:
- a boolean indicating if the content style should be used as default.
-
isRestricted
public boolean isRestricted()Description copied from interface:IContentStyleDS
This method returns a boolean indicating if the content style restricts the type of child styles that are allowed. When this method returns false, i.e. not restricted, the array of valid children is ignored.- Specified by:
isRestricted
in interfaceIContentStyleDS
- Returns:
- a boolean indicating if the content style restricts the type of child styles that are allowed.
-
getName
Description copied from interface:IElementDS
This method returns the (unique) name of the element. The name is required when adding the content as a definition to the composer, but it is optional when the element is added directly as inline sub-content.- Specified by:
getName
in interfaceIElementDS
- Returns:
- the (unique) name of the element.
-
getPresentationStyles
Description copied from interface:IElementDS
This method returns the presentation styles that should be used when including the content element that is referred to.- Specified by:
getPresentationStyles
in interfaceIElementDS
- Returns:
- the presentation styles that should be used when including the content element that is referred to.
-