Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BraillePlot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Georg Graßnick
BraillePlot
Commits
473aef92
Commit
473aef92
authored
5 years ago
by
Leonard Kupper
Browse files
Options
Downloads
Patches
Plain Diff
Add javadoc description for new property definition methods.
parent
f8e93698
No related branches found
No related tags found
1 merge request
!9
Feat/configparser update 18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/tudresden/inf/mci/brailleplot/configparser/JavaPropertiesConfigurationValidator.java
+24
-0
24 additions, 0 deletions
...ot/configparser/JavaPropertiesConfigurationValidator.java
with
24 additions
and
0 deletions
src/main/java/de/tudresden/inf/mci/brailleplot/configparser/JavaPropertiesConfigurationValidator.java
+
24
−
0
View file @
473aef92
...
@@ -69,15 +69,39 @@ class JavaPropertiesConfigurationValidator implements ConfigurationValidator {
...
@@ -69,15 +69,39 @@ class JavaPropertiesConfigurationValidator implements ConfigurationValidator {
}
}
/**
* Use this function in the validators constructor to add a printer property definition to the internal validation table.
* The property will be treated as 'required'.
* @param propertyName The name of the property. (The prefix 'printer.' must be omitted.)
* @param validation The validation predicate. {@link Predicate}<{@link String}>
*/
private
void
definePrinterProperty
(
final
String
propertyName
,
final
Predicate
<
String
>
validation
)
{
private
void
definePrinterProperty
(
final
String
propertyName
,
final
Predicate
<
String
>
validation
)
{
definePrinterProperty
(
propertyName
,
validation
,
true
);
definePrinterProperty
(
propertyName
,
validation
,
true
);
}
}
/**
* Use this function in the validators constructor to add a printer property definition to the internal validation table.
* @param propertyName The name of the property. (The prefix 'printer.' must be omitted.)
* @param validation The validation predicate. {@link Predicate}<{@link String}>
* @param required Signals whether this is a required property or not.
*/
private
void
definePrinterProperty
(
final
String
propertyName
,
final
Predicate
<
String
>
validation
,
final
boolean
required
)
{
private
void
definePrinterProperty
(
final
String
propertyName
,
final
Predicate
<
String
>
validation
,
final
boolean
required
)
{
defineProperty
(
mValidPrinterProperties
,
propertyName
,
validation
,
required
,
mRequiredPrinterProperties
);
defineProperty
(
mValidPrinterProperties
,
propertyName
,
validation
,
required
,
mRequiredPrinterProperties
);
}
}
/**
* Use this function in the validators constructor to add a format property definition to the internal validation table.
* The property will be treated as 'required'.
* @param propertyName The name of the property. (The prefix 'format.[name].' must be omitted.)
* @param validation The validation predicate. {@link Predicate}<{@link String}>
*/
private
void
defineFormatProperty
(
final
String
propertyName
,
final
Predicate
<
String
>
validation
)
{
private
void
defineFormatProperty
(
final
String
propertyName
,
final
Predicate
<
String
>
validation
)
{
defineFormatProperty
(
propertyName
,
validation
,
true
);
defineFormatProperty
(
propertyName
,
validation
,
true
);
}
}
/**
* Use this function in the validators constructor to add a format property definition to the internal validation table.
* @param propertyName The name of the property. (The prefix 'format.[name].' must be omitted.)
* @param validation The validation predicate. {@link Predicate}<{@link String}>
* @param required Signals whether this is a required property or not.
*/
private
void
defineFormatProperty
(
final
String
propertyName
,
final
Predicate
<
String
>
validation
,
final
boolean
required
)
{
private
void
defineFormatProperty
(
final
String
propertyName
,
final
Predicate
<
String
>
validation
,
final
boolean
required
)
{
defineProperty
(
mValidFormatProperties
,
propertyName
,
validation
,
required
,
mRequiredFormatProperties
);
defineProperty
(
mValidFormatProperties
,
propertyName
,
validation
,
required
,
mRequiredFormatProperties
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment