public class NestedRouteDeclaration extends NestableElementDeclaration<NestedRouteDeclaration> implements WithParametersDeclaration, WithNestedComponentsDeclaration<NestedRouteDeclaration>
NestedRouteModel
. It contains raw, unvalidated
data which is used to declare the structure of a NestedRouteModel
Modifier and Type | Method and Description |
---|---|
NestedRouteDeclaration |
addNestedComponent(NestableElementDeclaration nestedComponentDeclaration)
Adds a
NestableElementDeclaration |
List<ParameterDeclaration> |
getAllParameters()
Returns all the parameter declarations declared on all groups.
|
Integer |
getMaxOccurs() |
int |
getMinOccurs() |
List<NestableElementDeclaration> |
getNestedComponents() |
ParameterGroupDeclaration |
getParameterGroup(String groupName) |
List<ParameterGroupDeclaration> |
getParameterGroups() |
boolean |
isRequired() |
void |
setMaxOccurs(Integer maxOccurs) |
void |
setMinOccurs(int minOccurs) |
void |
setRequired(boolean required) |
getName
addModelProperty, getDescription, getDisplayModel, getModelProperties, getModelProperty, setDescription, setDisplayModel
public int getMinOccurs()
public void setMinOccurs(int minOccurs)
public Integer getMaxOccurs()
public void setMaxOccurs(Integer maxOccurs)
public void setRequired(boolean required)
setRequired
in class NestableElementDeclaration<NestedRouteDeclaration>
public boolean isRequired()
isRequired
in class NestableElementDeclaration<NestedRouteDeclaration>
public List<ParameterGroupDeclaration> getParameterGroups()
getParameterGroups
in interface WithParametersDeclaration
List
with the declarations
public ParameterGroupDeclaration getParameterGroup(String groupName)
getParameterGroup
in interface WithParametersDeclaration
groupName
- the name of the group which declaration you seekParameterGroupDeclaration
of the given groupName
.public List<ParameterDeclaration> getAllParameters()
WithParametersDeclaration
getAllParameters
in interface WithParametersDeclaration
public List<NestableElementDeclaration> getNestedComponents()
getNestedComponents
in interface WithNestedComponentsDeclaration<NestedRouteDeclaration>
List
with the NestableElementDeclaration
s which have been
added to this
declarationpublic NestedRouteDeclaration addNestedComponent(NestableElementDeclaration nestedComponentDeclaration)
WithNestedComponentsDeclaration
NestableElementDeclaration
addNestedComponent
in interface WithNestedComponentsDeclaration<NestedRouteDeclaration>
nestedComponentDeclaration
- the component declarationthis
declarationCopyright © 2018. All rights reserved.