Package nl.gx.forms.wmpformapi.api
Interface BasicFormSection
-
- All Known Subinterfaces:
FormSection
public interface BasicFormSection
Basic interface for a FormSection. All FormSections should implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description BasicFormSectionVersion
getActiveVersion()
Deprecated.usegetCurrent()
insteadBasicFormSectionVersion
getCurrent()
Returns the current version for this form section.String
getIdentifier()
Returns the identifier of this FormSection.List<BasicFormSectionVersion>
getVersions()
Returns a list of all versions of this FormSection.boolean
isDependentOn(BasicFormSection formSection)
Determines recursively if the formsection is dependent on another formsection.
-
-
-
Method Detail
-
getVersions
List<BasicFormSectionVersion> getVersions()
Returns a list of all versions of this FormSection.- Returns:
- a list of all versions of this FormSection
-
getActiveVersion
@Deprecated BasicFormSectionVersion getActiveVersion()
Deprecated.usegetCurrent()
insteadReturns the currently active version of this FormSection.- Returns:
- the currently active version of this FormSection or
null
if no version is currently active.
-
getCurrent
BasicFormSectionVersion getCurrent()
Returns the current version for this form section. This is defined to be the version with the most recent publication date which is non-expired and in a public state.- Returns:
- the current version, or
null
if there is no current version.
-
getIdentifier
String getIdentifier()
Returns the identifier of this FormSection.- Returns:
- the identifier of this FormSection
-
isDependentOn
boolean isDependentOn(BasicFormSection formSection)
Determines recursively if the formsection is dependent on another formsection. It returns true if the formsection contains a composite fragment that refers to this formsection (itself), or one of it's formsections that this formsection refers to, does.- Parameters:
formSection
- theBasicFormSection
which is checked against dependency on another formsection.- Returns:
- true if there is a dependency from this section to formSection. False otherwise, or when formSection is null.
-
-