Skip to content

Commit

Permalink
doc: Sample für die Verwendung der lib
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMitterer committed Dec 22, 2015
1 parent 4313600 commit 08ab94a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions lib/beanvalidator.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
/*
* Copyright (c) 2015, Michael Mitterer (office@mikemitterer.at),
* IT-Consulting and Development Limited.
*
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/// Validation-Check für PODOs
///
/// @beanreflector
/// class UsernamePassword {
///
/// @EMail(message: const L10N( "{{value}} is not a valid eMail address"))
/// String username;
///
/// @Password(message: const L10N( "{{value}} is not a valid password"))
/// final String password;
///
/// UsernamePassword(this.username, this.password);
/// }
///
/// main() {
/// final UsernamePassword userpassword = new UsernamePassword("office@mikemitterer.at", "12345678aA#");
/// final BeanValidator<UsernamePassword> beanValidator = new BeanValidator<UsernamePassword>();
/// List<ViolationInfo> violationinfos = beanValidator.validate(userpassword);
/// }
///
library beanvalidator;

import 'dart:collection';
Expand Down

0 comments on commit 08ab94a

Please sign in to comment.