commit
920f558500
|
|
@ -14,11 +14,13 @@ import UIKit
|
|||
@objc public protocol ValidationDelegate {
|
||||
/**
|
||||
This method will be called on delegate object when validation is successful.
|
||||
|
||||
- returns: No return value.
|
||||
*/
|
||||
func validationSuccessful()
|
||||
/**
|
||||
This method will be called on delegate object when validation fails.
|
||||
|
||||
- returns: No return value.
|
||||
*/
|
||||
func validationFailed(errors: [UITextField:ValidationError])
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ public class ValidationError: NSObject {
|
|||
|
||||
/**
|
||||
Initializes `ValidationError` object with a textField and error.
|
||||
|
||||
- parameter textField: UITextField that holds textField.
|
||||
- parameter errorMessage: String that holds error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason that would not result in an exception.
|
||||
|
|
@ -29,7 +30,8 @@ public class ValidationError: NSObject {
|
|||
}
|
||||
|
||||
/**
|
||||
Initializes ValidationError object with a textField, errorLabel, and errorMessage.
|
||||
Initializes `ValidationError` object with a textField, errorLabel, and errorMessage.
|
||||
|
||||
- parameter textField: UITextField that holds textField.
|
||||
- parameter errorLabel: UILabel that holds error label.
|
||||
- parameter errorMessage: String that holds error message.
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ public class Validator {
|
|||
/**
|
||||
This method is used to validate all fields registered to Validator. If validation is unsuccessful,
|
||||
field gets added to errors dictionary.
|
||||
|
||||
- returns: No return value.
|
||||
*/
|
||||
private func validateAllFields() {
|
||||
|
|
@ -58,6 +59,7 @@ public class Validator {
|
|||
/**
|
||||
This method is used to validate a single field registered to Validator. If validation is unsuccessful,
|
||||
field gets added to errors dictionary.
|
||||
|
||||
- parameter textField: Holds validator field data.
|
||||
- returns: No return value.
|
||||
*/
|
||||
|
|
@ -149,7 +151,6 @@ public class Validator {
|
|||
This method validates all fields in validator and sets any errors to errors parameter of callback.
|
||||
|
||||
- parameter callback: A closure which is called with errors, a dictionary of type UITextField:ValidationError.
|
||||
|
||||
- returns: No return value.
|
||||
*/
|
||||
public func validate(callback:(errors:[UITextField:ValidationError])->Void) -> Void {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,18 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
/**
|
||||
`AlphaNumericRule` is a subclass of `CharacterSetRule`. It is used to verify that a field has a
|
||||
valid list of alphanumeric characters.
|
||||
*/
|
||||
public class AlphaNumericRule: CharacterSetRule {
|
||||
|
||||
/**
|
||||
Initializes a `AlphaNumericRule` object to verify that field has valid set of alphanumeric characters.
|
||||
|
||||
- parameter message: String of error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason that would not result in an exception.
|
||||
*/
|
||||
public init(message: String = "Enter valid numeric characters") {
|
||||
super.init(characterSet: NSCharacterSet.alphanumericCharacterSet(), message: message)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,18 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
/**
|
||||
`AlphaRule` is a subclass of `CharacterSetRule`. It is used to verify that a field has a
|
||||
valid list of alpha characters.
|
||||
*/
|
||||
public class AlphaRule: CharacterSetRule {
|
||||
|
||||
/**
|
||||
Initializes an `AlphaRule` object to verify that a field has valid set of alpha characters.
|
||||
|
||||
- parameter message: String of error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason.
|
||||
*/
|
||||
public init(message: String = "Enter valid alphabetic characters") {
|
||||
super.init(characterSet: NSCharacterSet.letterCharacterSet(), message: message)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,16 +8,33 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
/**
|
||||
`CharacterSetRule` is a subclass of `Rule`. It is used to validate IPV4 address fields.
|
||||
*/
|
||||
public class CharacterSetRule: Rule {
|
||||
|
||||
/// NSCharacter that hold set of valid characters to hold
|
||||
private let characterSet: NSCharacterSet
|
||||
/// String that holds error message
|
||||
private var message: String
|
||||
|
||||
/**
|
||||
Initializes a `CharacterSetRule` object to verify that field has valid set of characters.
|
||||
|
||||
- parameter characterSet: NSCharacterSet that holds group of valid characters.
|
||||
- parameter message: String of error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason that would not result in an exception.
|
||||
*/
|
||||
public init(characterSet: NSCharacterSet, message: String = "Enter valid alpha") {
|
||||
self.characterSet = characterSet
|
||||
self.message = message
|
||||
}
|
||||
|
||||
/**
|
||||
Used to validate field.
|
||||
|
||||
- parameter value: String to checked for validation.
|
||||
- returns: Boolean value. True if validation is successful; False if validation fails.
|
||||
*/
|
||||
public func validate(value: String) -> Bool {
|
||||
for uni in value.unicodeScalars {
|
||||
if !characterSet.longCharacterIsMember(uni.value) {
|
||||
|
|
@ -27,6 +44,11 @@ public class CharacterSetRule: Rule {
|
|||
return true
|
||||
}
|
||||
|
||||
/**
|
||||
Displays error message when text field fails validation.
|
||||
|
||||
- returns: String of error message.
|
||||
*/
|
||||
public func errorMessage() -> String {
|
||||
return message
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,9 +8,19 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
/**
|
||||
`HexColorRule` is a subclass of `RegexRule`. It is used to verify whether a field is a hexadecimal color.
|
||||
*/
|
||||
public class HexColorRule: RegexRule {
|
||||
/// Regular expression string that is used to verify hexadecimal
|
||||
static let regex = "^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$"
|
||||
|
||||
/**
|
||||
Initializes a `HexaColorRule` object to verify that field has text in hexadecimal color format.
|
||||
|
||||
- parameter message: String of error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason that would not result in an exception.
|
||||
*/
|
||||
public init(message: String = "Invalid regular expression") {
|
||||
super.init(regex: HexColorRule.regex, message: message)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,10 +8,19 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
/**
|
||||
`IPV4Rule` is a subclass of RegexRule that defines how a IPV4 address validated.
|
||||
*/
|
||||
public class IPV4Rule: RegexRule {
|
||||
|
||||
/// Regular expression string that is used to verify IPV4 address.
|
||||
static let regex = "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"
|
||||
|
||||
|
||||
/**
|
||||
Initializes a `IPV4Rule` object to verify that field has text is an IPV4Rule address.
|
||||
|
||||
- parameter message: String of error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason that would not result in an exception.
|
||||
*/
|
||||
public init(message: String = "Must be a valid IPV4 address") {
|
||||
super.init(regex: IPV4Rule.regex, message: message)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,14 +8,30 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
/**
|
||||
`ISBNRule` is a subclass of `Rule`. It is used to verify whether a field is a valid ISBN number.
|
||||
*/
|
||||
public class ISBNRule: Rule {
|
||||
|
||||
/// String that holds error message
|
||||
private let message: String
|
||||
|
||||
/**
|
||||
Initializes a `ISBNRule` object to verify that field has text that is a ISBN number.
|
||||
|
||||
- parameter message: String of error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason that would not result in an exception.
|
||||
*/
|
||||
public init(message: String = "Enter valid ISBN number") {
|
||||
self.message = message
|
||||
}
|
||||
|
||||
/**
|
||||
Method used to validate text field.
|
||||
|
||||
- parameter value: String to checked for validation.
|
||||
- returns: Boolean value. True if validation is successful; False if validation fails.
|
||||
*/
|
||||
public func validate(value: String) -> Bool {
|
||||
|
||||
guard let regex = try? NSRegularExpression(pattern: "[\\s-]", options: []) else {
|
||||
|
|
@ -27,25 +43,75 @@ public class ISBNRule: Rule {
|
|||
return ISBN10Validator().verify(sanitized) || ISBN13Validator().verify(sanitized)
|
||||
}
|
||||
|
||||
/**
|
||||
Method used to dispaly error message when text field fails validation.
|
||||
|
||||
- returns: String of error message.
|
||||
*/
|
||||
public func errorMessage() -> String {
|
||||
return message;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
`ISBNValidator` defines the protocol that objects adopting it must implement.
|
||||
*/
|
||||
private protocol ISBNValidator {
|
||||
/// Regular expression string
|
||||
var regex: String { get }
|
||||
|
||||
/**
|
||||
Method that actually verifies a ISBN number.
|
||||
|
||||
- parameter input: String that is to be validated against `ISBNRule`
|
||||
- returns: A `Bool` that represents what happened during verification. `false` is returned if
|
||||
it fails, `true` is returned if it was a success.
|
||||
*/
|
||||
func verify(input: String) -> Bool
|
||||
/**
|
||||
Method that verifies regular expression is valid.
|
||||
|
||||
- parameter input: String that holds ISBN number being validated.
|
||||
- returns: A `Bool` that represents the status of the ISBN number. `false` if ISBN number
|
||||
was not valid, `true` if it was valid.
|
||||
*/
|
||||
func checkRegex(input: String) -> Bool
|
||||
|
||||
/**
|
||||
Method that verifies `ISBN` being validated is itself valid. It has to be either ISBN10
|
||||
or ISBN13.
|
||||
|
||||
- parameter input: String that holds ISBN number being validated.
|
||||
- returns: A `Bool` that represents the status of the ISBN number. `false` if ISBN number
|
||||
was not valid, `true` if it was valid.
|
||||
*/
|
||||
func verifyChecksum(input: String) -> Bool
|
||||
}
|
||||
|
||||
/**
|
||||
`ISBNValidator` defines the extensions that are added to `ISBNValidator`.
|
||||
*/
|
||||
extension ISBNValidator {
|
||||
|
||||
/**
|
||||
Method that actually verifies a ISBN number.
|
||||
|
||||
- parameter input: String that is to be validated against `ISBNRule`
|
||||
- returns: A `Bool` that represents what happened during verification. `false` is returned if
|
||||
it fails, `true` is returned if it was a success.
|
||||
*/
|
||||
func verify(input: String) -> Bool {
|
||||
return checkRegex(input) && verifyChecksum(input)
|
||||
}
|
||||
|
||||
/**
|
||||
Method that verifies `ISBN` being validated is itself valid. It has to be either ISBN10
|
||||
or ISBN13.
|
||||
|
||||
- parameter input: String that holds ISBN number being validated.
|
||||
- returns: A `Bool` that represents the status of the ISBN number. `false` if ISBN number
|
||||
was not valid, `true` if it was valid.
|
||||
*/
|
||||
func checkRegex(input: String) -> Bool {
|
||||
guard let _ = input.rangeOfString(regex, options: [.RegularExpressionSearch, .AnchoredSearch]) else {
|
||||
return false
|
||||
|
|
@ -55,9 +121,21 @@ extension ISBNValidator {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
`ISBN10Validator` is a struct that adopts the `ISBNValidator` protocol. Used to validate that
|
||||
a field is an ISBN10 number.
|
||||
*/
|
||||
private struct ISBN10Validator: ISBNValidator {
|
||||
/// Regular expression used to validate ISBN10 number
|
||||
let regex = "^(?:[0-9]{9}X|[0-9]{10})$"
|
||||
|
||||
|
||||
/**
|
||||
Checks that a string is an ISBN10 number.
|
||||
|
||||
- parameter input: String that is checked for ISBN10 validation.
|
||||
- returns: `true` if string is a valid ISBN10 and `false` if it is not.
|
||||
*/
|
||||
private func verifyChecksum(input: String) -> Bool {
|
||||
var checksum = 0
|
||||
|
||||
|
|
@ -79,9 +157,20 @@ private struct ISBN10Validator: ISBNValidator {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
`ISBN13Validator` is a struct that adopts the `ISBNValidator` protocol. Used to validate that
|
||||
a field is an ISBN13 number.
|
||||
*/
|
||||
private struct ISBN13Validator: ISBNValidator {
|
||||
/// Regular expression used to validate ISBN13 number.
|
||||
let regex = "^(?:[0-9]{13})$"
|
||||
|
||||
/**
|
||||
Checks that a string is an ISBN13 number.
|
||||
|
||||
- parameter input: String that is checked for ISBN13 validation.
|
||||
- returns: `true` if string is a valid ISBN13 and `false` if it is not.
|
||||
*/
|
||||
private func verifyChecksum(input: String) -> Bool {
|
||||
let factor = [1, 3]
|
||||
var checksum = 0
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@ public class MaxLengthRule: Rule {
|
|||
public init(){}
|
||||
|
||||
/**
|
||||
Initializes a `MaxLengthRule` object that is to validate the length of the text of a text field
|
||||
Initializes a `MaxLengthRule` object that is to validate the length of the text of a text field.
|
||||
|
||||
- parameter length: Maximum character length.
|
||||
- parameter message: String of error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason that would not result in an exception.
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ public class MinLengthRule: Rule {
|
|||
public init(){}
|
||||
|
||||
/**
|
||||
Initializes a `MaxLengthRule` object that is to validate the length of the text of a text field
|
||||
Initializes a `MaxLengthRule` object that is to validate the length of the text of a text field.
|
||||
|
||||
- parameter length: Minimum character length.
|
||||
- parameter message: String of error message.
|
||||
- returns: An initialized `MinLengthRule` object, or nil if an object could not be created for some reason that would not result in an exception.
|
||||
|
|
|
|||
|
|
@ -17,7 +17,8 @@ public class PhoneNumberRule: RegexRule {
|
|||
static let regex = "^\\d{10}$"
|
||||
|
||||
/**
|
||||
Method used to initialize `PhoneNumberRule` object.
|
||||
Initializes a `PhoneNumberRule` object. Used to validate that a field has a valid phone number.
|
||||
|
||||
- parameter message: Error message that is displayed if validation fails.
|
||||
- returns: An initialized `PasswordRule` object, or nil if an object could not be created for some reason that would not result in an exception.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ public class RequiredRule: Rule {
|
|||
private var message : String
|
||||
|
||||
/**
|
||||
Initializes `RequiredRule` object with error message. Used to validate a field that requires text.
|
||||
|
||||
- parameter message: String of error message.
|
||||
- returns: An initialized `RequiredRule` object, or nil if an object could not be created for some reason that would not result in an exception.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -29,6 +29,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -44,6 +53,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -225,6 +243,71 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C14SwiftValidator16AlphaNumericRule"></a>
|
||||
<a name="//apple_ref/swift/Class/AlphaNumericRule" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C14SwiftValidator16AlphaNumericRule">AlphaNumericRule</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p><code>AlphaNumericRule</code> is a subclass of <code><a href="Classes/CharacterSetRule.html">CharacterSetRule</a></code>. It is used to verify that a field has a
|
||||
valid list of alphanumeric characters.</p>
|
||||
|
||||
<a href="Classes/AlphaNumericRule.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">AlphaNumericRule</span><span class="p">:</span> <span class="kt">CharacterSetRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C14SwiftValidator16CharacterSetRule"></a>
|
||||
<a name="//apple_ref/swift/Class/CharacterSetRule" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C14SwiftValidator16CharacterSetRule">CharacterSetRule</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p><code>CharacterSetRule</code> is a subclass of <code><a href="Protocols/Rule.html">Rule</a></code>. It is used to validate IPV4 address fields.</p>
|
||||
|
||||
<a href="Classes/CharacterSetRule.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">CharacterSetRule</span><span class="p">:</span> <span class="kt">Rule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
|
|
@ -289,6 +372,38 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C14SwiftValidator12HexColorRule"></a>
|
||||
<a name="//apple_ref/swift/Class/HexColorRule" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C14SwiftValidator12HexColorRule">HexColorRule</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p><code>HexColorRule</code> is a subclass of <code><a href="Classes/RegexRule.html">RegexRule</a></code>. It is used to verify whether a field is a hexadecimal color.</p>
|
||||
|
||||
<a href="Classes/HexColorRule.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">HexColorRule</span><span class="p">:</span> <span class="kt">RegexRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
|
|
@ -387,6 +502,70 @@ to another text field is validated.</p>
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C14SwiftValidator8IPV4Rule"></a>
|
||||
<a name="//apple_ref/swift/Class/IPV4Rule" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C14SwiftValidator8IPV4Rule">IPV4Rule</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p><code>IPV4Rule</code> is a subclass of RegexRule that defines how a IPV4 address validated.</p>
|
||||
|
||||
<a href="Classes/IPV4Rule.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">IPV4Rule</span><span class="p">:</span> <span class="kt">RegexRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C14SwiftValidator8ISBNRule"></a>
|
||||
<a name="//apple_ref/swift/Class/ISBNRule" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C14SwiftValidator8ISBNRule">ISBNRule</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p><code>ISBNRule</code> is a subclass of <code><a href="Protocols/Rule.html">Rule</a></code>. It is used to verify whether a field is a valid ISBN number.</p>
|
||||
|
||||
<a href="Classes/ISBNRule.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">ISBNRule</span><span class="p">:</span> <span class="kt">Rule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
|
|
@ -483,6 +662,39 @@ to another text field is validated.</p>
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C14SwiftValidator9AlphaRule"></a>
|
||||
<a name="//apple_ref/swift/Class/AlphaRule" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C14SwiftValidator9AlphaRule">AlphaRule</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p><code>AlphaRule</code> is a subclass of <code><a href="Classes/CharacterSetRule.html">CharacterSetRule</a></code>. It is used to verify that a field has a
|
||||
valid list of alpha characters.</p>
|
||||
|
||||
<a href="Classes/AlphaRule.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">AlphaRule</span><span class="p">:</span> <span class="kt">CharacterSetRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
|
|
@ -582,7 +794,7 @@ to another text field is validated.</p>
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,192 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>AlphaNumericRule Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/AlphaNumericRule" class="dashAnchor"></a>
|
||||
<a title="AlphaNumericRule Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">SwiftValidator Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">SwiftValidator Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
AlphaNumericRule Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EmailRule.html">EmailRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ExactLengthRule.html">ExactLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FloatRule.html">FloatRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MinLengthRule.html">MinLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PasswordRule.html">PasswordRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RegexRule.html">RegexRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RequiredRule.html">RequiredRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationError.html">ValidationError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationRule.html">ValidationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Validator.html">Validator</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ZipCodeRule.html">ZipCodeRule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/Rule.html">Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/ValidationDelegate.html">ValidationDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>AlphaNumericRule</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">AlphaNumericRule</span><span class="p">:</span> <span class="kt">CharacterSetRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><code>AlphaNumericRule</code> is a subclass of <code><a href="../Classes/CharacterSetRule.html">CharacterSetRule</a></code>. It is used to verify that a field has a
|
||||
valid list of alphanumeric characters.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator16AlphaNumericRulecFMS0_FT7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator16AlphaNumericRulecFMS0_FT7messageSS_S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code><a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a></code> object to verify that field has valid set of alphanumeric characters.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"Enter valid numeric characters"</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>message</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,192 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>AlphaRule Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/AlphaRule" class="dashAnchor"></a>
|
||||
<a title="AlphaRule Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">SwiftValidator Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">SwiftValidator Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
AlphaRule Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EmailRule.html">EmailRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ExactLengthRule.html">ExactLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FloatRule.html">FloatRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MinLengthRule.html">MinLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PasswordRule.html">PasswordRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RegexRule.html">RegexRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RequiredRule.html">RequiredRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationError.html">ValidationError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationRule.html">ValidationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Validator.html">Validator</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ZipCodeRule.html">ZipCodeRule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/Rule.html">Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/ValidationDelegate.html">ValidationDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>AlphaRule</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">AlphaRule</span><span class="p">:</span> <span class="kt">CharacterSetRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><code>AlphaRule</code> is a subclass of <code><a href="../Classes/CharacterSetRule.html">CharacterSetRule</a></code>. It is used to verify that a field has a
|
||||
valid list of alpha characters.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator9AlphaRulecFMS0_FT7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator9AlphaRulecFMS0_FT7messageSS_S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes an <code><a href="../Classes/AlphaRule.html">AlphaRule</a></code> object to verify that a field has valid set of alpha characters.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"Enter valid alphabetic characters"</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>message</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>An initialized object, or nil if an object could not be created for some reason.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,288 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>CharacterSetRule Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/CharacterSetRule" class="dashAnchor"></a>
|
||||
<a title="CharacterSetRule Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">SwiftValidator Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">SwiftValidator Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
CharacterSetRule Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EmailRule.html">EmailRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ExactLengthRule.html">ExactLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FloatRule.html">FloatRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MinLengthRule.html">MinLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PasswordRule.html">PasswordRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RegexRule.html">RegexRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RequiredRule.html">RequiredRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationError.html">ValidationError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationRule.html">ValidationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Validator.html">Validator</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ZipCodeRule.html">ZipCodeRule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/Rule.html">Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/ValidationDelegate.html">ValidationDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>CharacterSetRule</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">CharacterSetRule</span><span class="p">:</span> <span class="kt">Rule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><code>CharacterSetRule</code> is a subclass of <code><a href="../Protocols/Rule.html">Rule</a></code>. It is used to validate IPV4 address fields.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator16CharacterSetRulecFMS0_FT12characterSetCSo14NSCharacterSet7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(characterSet:message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator16CharacterSetRulecFMS0_FT12characterSetCSo14NSCharacterSet7messageSS_S0_">init(characterSet:message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code><a href="../Classes/CharacterSetRule.html">CharacterSetRule</a></code> object to verify that field has valid set of characters.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">characterSet</span><span class="p">:</span> <span class="kt">NSCharacterSet</span><span class="p">,</span> <span class="nv">message</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"Enter valid alpha"</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>characterSet</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>NSCharacterSet that holds group of valid characters.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>message</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator16CharacterSetRule8validateFS0_FSSSb"></a>
|
||||
<a name="//apple_ref/swift/Method/validate(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator16CharacterSetRule8validateFS0_FSSSb">validate(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Used to validate field.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">validate</span><span class="p">(</span><span class="nv">value</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Bool</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>value</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String to checked for validation.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>Boolean value. True if validation is successful; False if validation fails.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator16CharacterSetRule12errorMessageFS0_FT_SS"></a>
|
||||
<a name="//apple_ref/swift/Method/errorMessage()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator16CharacterSetRule12errorMessageFS0_FT_SS">errorMessage()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Displays error message when text field fails validation.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">errorMessage</span><span class="p">()</span> <span class="o">-></span> <span class="kt">String</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -261,7 +279,7 @@ to another text field is validated.</p>
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -163,7 +181,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -260,7 +278,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -247,7 +265,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -247,7 +265,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,191 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>HexColorRule Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/HexColorRule" class="dashAnchor"></a>
|
||||
<a title="HexColorRule Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">SwiftValidator Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">SwiftValidator Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
HexColorRule Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EmailRule.html">EmailRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ExactLengthRule.html">ExactLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FloatRule.html">FloatRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MinLengthRule.html">MinLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PasswordRule.html">PasswordRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RegexRule.html">RegexRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RequiredRule.html">RequiredRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationError.html">ValidationError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationRule.html">ValidationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Validator.html">Validator</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ZipCodeRule.html">ZipCodeRule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/Rule.html">Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/ValidationDelegate.html">ValidationDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>HexColorRule</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">HexColorRule</span><span class="p">:</span> <span class="kt">RegexRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><code>HexColorRule</code> is a subclass of <code><a href="../Classes/RegexRule.html">RegexRule</a></code>. It is used to verify whether a field is a hexadecimal color.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator12HexColorRulecFMS0_FT7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator12HexColorRulecFMS0_FT7messageSS_S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code>HexaColorRule</code> object to verify that field has text in hexadecimal color format.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"Invalid regular expression"</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>message</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,191 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>IPV4Rule Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/IPV4Rule" class="dashAnchor"></a>
|
||||
<a title="IPV4Rule Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">SwiftValidator Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">SwiftValidator Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
IPV4Rule Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EmailRule.html">EmailRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ExactLengthRule.html">ExactLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FloatRule.html">FloatRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MinLengthRule.html">MinLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PasswordRule.html">PasswordRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RegexRule.html">RegexRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RequiredRule.html">RequiredRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationError.html">ValidationError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationRule.html">ValidationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Validator.html">Validator</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ZipCodeRule.html">ZipCodeRule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/Rule.html">Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/ValidationDelegate.html">ValidationDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>IPV4Rule</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">IPV4Rule</span><span class="p">:</span> <span class="kt">RegexRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><code>IPV4Rule</code> is a subclass of RegexRule that defines how a IPV4 address validated.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator8IPV4RulecFMS0_FT7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator8IPV4RulecFMS0_FT7messageSS_S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code><a href="../Classes/IPV4Rule.html">IPV4Rule</a></code> object to verify that field has text is an IPV4Rule address.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"Must be a valid IPV4 address"</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>message</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,275 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>ISBNRule Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/ISBNRule" class="dashAnchor"></a>
|
||||
<a title="ISBNRule Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">SwiftValidator Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">SwiftValidator Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
ISBNRule Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EmailRule.html">EmailRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ExactLengthRule.html">ExactLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FloatRule.html">FloatRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MinLengthRule.html">MinLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PasswordRule.html">PasswordRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RegexRule.html">RegexRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RequiredRule.html">RequiredRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationError.html">ValidationError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationRule.html">ValidationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Validator.html">Validator</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ZipCodeRule.html">ZipCodeRule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/Rule.html">Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/ValidationDelegate.html">ValidationDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>ISBNRule</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">ISBNRule</span><span class="p">:</span> <span class="kt">Rule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><code>ISBNRule</code> is a subclass of <code><a href="../Protocols/Rule.html">Rule</a></code>. It is used to verify whether a field is a valid ISBN number.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator8ISBNRulecFMS0_FT7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator8ISBNRulecFMS0_FT7messageSS_S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code><a href="../Classes/ISBNRule.html">ISBNRule</a></code> object to verify that field has text that is a ISBN number.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"Enter valid ISBN number"</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>message</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator8ISBNRule8validateFS0_FSSSb"></a>
|
||||
<a name="//apple_ref/swift/Method/validate(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator8ISBNRule8validateFS0_FSSSb">validate(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method used to validate text field.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">validate</span><span class="p">(</span><span class="nv">value</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Bool</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>value</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String to checked for validation.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>Boolean value. True if validation is successful; False if validation fails.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator8ISBNRule12errorMessageFS0_FT_SS"></a>
|
||||
<a name="//apple_ref/swift/Method/errorMessage()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator8ISBNRule12errorMessageFS0_FT_SS">errorMessage()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method used to dispaly error message when text field fails validation.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">errorMessage</span><span class="p">()</span> <span class="o">-></span> <span class="kt">String</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -150,10 +168,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code><a href="../Classes/MaxLengthRule.html">MaxLengthRule</a></code> object that is to validate the length of the text of a text field
|
||||
- parameter length: Maximum character length.
|
||||
- parameter message: String of error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
<p>Initializes a <code><a href="../Classes/MaxLengthRule.html">MaxLengthRule</a></code> object that is to validate the length of the text of a text field.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -294,7 +309,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -150,10 +168,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code><a href="../Classes/MaxLengthRule.html">MaxLengthRule</a></code> object that is to validate the length of the text of a text field
|
||||
- parameter length: Minimum character length.
|
||||
- parameter message: String of error message.
|
||||
- returns: An initialized <code><a href="../Classes/MinLengthRule.html">MinLengthRule</a></code> object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
<p>Initializes a <code><a href="../Classes/MaxLengthRule.html">MaxLengthRule</a></code> object that is to validate the length of the text of a text field.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -296,7 +311,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -163,7 +181,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -119,9 +137,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method used to initialize <code><a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a></code> object.
|
||||
- parameter message: Error message that is displayed if validation fails.
|
||||
- returns: An initialized <code><a href="../Classes/PasswordRule.html">PasswordRule</a></code> object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
<p>Initializes a <code><a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a></code> object. Used to validate that a field has a valid phone number.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -165,7 +181,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -260,7 +278,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -119,7 +137,8 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
|
||||
<p>Initializes <code><a href="../Classes/RequiredRule.html">RequiredRule</a></code> object with error message. Used to validate a field that requires text.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
|
|
@ -246,7 +265,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -200,10 +218,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes <code><a href="../Classes/ValidationError.html">ValidationError</a></code> object with a textField and error.
|
||||
- parameter textField: UITextField that holds textField.
|
||||
- parameter errorMessage: String that holds error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
<p>Initializes <code><a href="../Classes/ValidationError.html">ValidationError</a></code> object with a textField and error.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -268,11 +283,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes ValidationError object with a textField, errorLabel, and errorMessage.
|
||||
- parameter textField: UITextField that holds textField.
|
||||
- parameter errorLabel: UILabel that holds error label.
|
||||
- parameter errorMessage: String that holds error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
<p>Initializes <code><a href="../Classes/ValidationError.html">ValidationError</a></code> object with a textField, errorLabel, and errorMessage.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -342,7 +353,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -303,7 +321,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -217,9 +235,7 @@ validation fields.</p>
|
|||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>This method is used to validate a single field registered to Validator. If validation is unsuccessful,
|
||||
field gets added to errors dictionary.
|
||||
- parameter textField: Holds validator field data.
|
||||
- returns: No return value.</p>
|
||||
field gets added to errors dictionary.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -618,7 +634,7 @@ field gets added to errors dictionary.
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -163,7 +181,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -29,6 +29,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -44,6 +53,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -164,7 +182,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -195,7 +213,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -119,8 +137,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>This method will be called on delegate object when validation is successful.
|
||||
- returns: No return value.</p>
|
||||
<p>This method will be called on delegate object when validation is successful.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -152,8 +169,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>This method will be called on delegate object when validation fails.
|
||||
- returns: No return value.</p>
|
||||
<p>This method will be called on delegate object when validation fails.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -177,7 +193,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -29,6 +29,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -44,6 +53,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -225,6 +243,71 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C14SwiftValidator16AlphaNumericRule"></a>
|
||||
<a name="//apple_ref/swift/Class/AlphaNumericRule" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C14SwiftValidator16AlphaNumericRule">AlphaNumericRule</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p><code>AlphaNumericRule</code> is a subclass of <code><a href="Classes/CharacterSetRule.html">CharacterSetRule</a></code>. It is used to verify that a field has a
|
||||
valid list of alphanumeric characters.</p>
|
||||
|
||||
<a href="Classes/AlphaNumericRule.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">AlphaNumericRule</span><span class="p">:</span> <span class="kt">CharacterSetRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C14SwiftValidator16CharacterSetRule"></a>
|
||||
<a name="//apple_ref/swift/Class/CharacterSetRule" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C14SwiftValidator16CharacterSetRule">CharacterSetRule</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p><code>CharacterSetRule</code> is a subclass of <code><a href="Protocols/Rule.html">Rule</a></code>. It is used to validate IPV4 address fields.</p>
|
||||
|
||||
<a href="Classes/CharacterSetRule.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">CharacterSetRule</span><span class="p">:</span> <span class="kt">Rule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
|
|
@ -289,6 +372,38 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C14SwiftValidator12HexColorRule"></a>
|
||||
<a name="//apple_ref/swift/Class/HexColorRule" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C14SwiftValidator12HexColorRule">HexColorRule</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p><code>HexColorRule</code> is a subclass of <code><a href="Classes/RegexRule.html">RegexRule</a></code>. It is used to verify whether a field is a hexadecimal color.</p>
|
||||
|
||||
<a href="Classes/HexColorRule.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">HexColorRule</span><span class="p">:</span> <span class="kt">RegexRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
|
|
@ -387,6 +502,70 @@ to another text field is validated.</p>
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C14SwiftValidator8IPV4Rule"></a>
|
||||
<a name="//apple_ref/swift/Class/IPV4Rule" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C14SwiftValidator8IPV4Rule">IPV4Rule</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p><code>IPV4Rule</code> is a subclass of RegexRule that defines how a IPV4 address validated.</p>
|
||||
|
||||
<a href="Classes/IPV4Rule.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">IPV4Rule</span><span class="p">:</span> <span class="kt">RegexRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C14SwiftValidator8ISBNRule"></a>
|
||||
<a name="//apple_ref/swift/Class/ISBNRule" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C14SwiftValidator8ISBNRule">ISBNRule</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p><code>ISBNRule</code> is a subclass of <code><a href="Protocols/Rule.html">Rule</a></code>. It is used to verify whether a field is a valid ISBN number.</p>
|
||||
|
||||
<a href="Classes/ISBNRule.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">ISBNRule</span><span class="p">:</span> <span class="kt">Rule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
|
|
@ -483,6 +662,39 @@ to another text field is validated.</p>
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C14SwiftValidator9AlphaRule"></a>
|
||||
<a name="//apple_ref/swift/Class/AlphaRule" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C14SwiftValidator9AlphaRule">AlphaRule</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p><code>AlphaRule</code> is a subclass of <code><a href="Classes/CharacterSetRule.html">CharacterSetRule</a></code>. It is used to verify that a field has a
|
||||
valid list of alpha characters.</p>
|
||||
|
||||
<a href="Classes/AlphaRule.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">AlphaRule</span><span class="p">:</span> <span class="kt">CharacterSetRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
|
|
@ -582,7 +794,7 @@ to another text field is validated.</p>
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,192 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>AlphaNumericRule Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/AlphaNumericRule" class="dashAnchor"></a>
|
||||
<a title="AlphaNumericRule Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">SwiftValidator Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">SwiftValidator Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
AlphaNumericRule Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EmailRule.html">EmailRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ExactLengthRule.html">ExactLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FloatRule.html">FloatRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MinLengthRule.html">MinLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PasswordRule.html">PasswordRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RegexRule.html">RegexRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RequiredRule.html">RequiredRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationError.html">ValidationError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationRule.html">ValidationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Validator.html">Validator</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ZipCodeRule.html">ZipCodeRule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/Rule.html">Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/ValidationDelegate.html">ValidationDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>AlphaNumericRule</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">AlphaNumericRule</span><span class="p">:</span> <span class="kt">CharacterSetRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><code>AlphaNumericRule</code> is a subclass of <code><a href="../Classes/CharacterSetRule.html">CharacterSetRule</a></code>. It is used to verify that a field has a
|
||||
valid list of alphanumeric characters.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator16AlphaNumericRulecFMS0_FT7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator16AlphaNumericRulecFMS0_FT7messageSS_S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code><a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a></code> object to verify that field has valid set of alphanumeric characters.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"Enter valid numeric characters"</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>message</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,192 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>AlphaRule Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/AlphaRule" class="dashAnchor"></a>
|
||||
<a title="AlphaRule Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">SwiftValidator Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">SwiftValidator Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
AlphaRule Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EmailRule.html">EmailRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ExactLengthRule.html">ExactLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FloatRule.html">FloatRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MinLengthRule.html">MinLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PasswordRule.html">PasswordRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RegexRule.html">RegexRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RequiredRule.html">RequiredRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationError.html">ValidationError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationRule.html">ValidationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Validator.html">Validator</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ZipCodeRule.html">ZipCodeRule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/Rule.html">Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/ValidationDelegate.html">ValidationDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>AlphaRule</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">AlphaRule</span><span class="p">:</span> <span class="kt">CharacterSetRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><code>AlphaRule</code> is a subclass of <code><a href="../Classes/CharacterSetRule.html">CharacterSetRule</a></code>. It is used to verify that a field has a
|
||||
valid list of alpha characters.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator9AlphaRulecFMS0_FT7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator9AlphaRulecFMS0_FT7messageSS_S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes an <code><a href="../Classes/AlphaRule.html">AlphaRule</a></code> object to verify that a field has valid set of alpha characters.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"Enter valid alphabetic characters"</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>message</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>An initialized object, or nil if an object could not be created for some reason.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,288 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>CharacterSetRule Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/CharacterSetRule" class="dashAnchor"></a>
|
||||
<a title="CharacterSetRule Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">SwiftValidator Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">SwiftValidator Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
CharacterSetRule Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EmailRule.html">EmailRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ExactLengthRule.html">ExactLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FloatRule.html">FloatRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MinLengthRule.html">MinLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PasswordRule.html">PasswordRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RegexRule.html">RegexRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RequiredRule.html">RequiredRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationError.html">ValidationError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationRule.html">ValidationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Validator.html">Validator</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ZipCodeRule.html">ZipCodeRule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/Rule.html">Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/ValidationDelegate.html">ValidationDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>CharacterSetRule</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">CharacterSetRule</span><span class="p">:</span> <span class="kt">Rule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><code>CharacterSetRule</code> is a subclass of <code><a href="../Protocols/Rule.html">Rule</a></code>. It is used to validate IPV4 address fields.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator16CharacterSetRulecFMS0_FT12characterSetCSo14NSCharacterSet7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(characterSet:message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator16CharacterSetRulecFMS0_FT12characterSetCSo14NSCharacterSet7messageSS_S0_">init(characterSet:message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code><a href="../Classes/CharacterSetRule.html">CharacterSetRule</a></code> object to verify that field has valid set of characters.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">characterSet</span><span class="p">:</span> <span class="kt">NSCharacterSet</span><span class="p">,</span> <span class="nv">message</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"Enter valid alpha"</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>characterSet</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>NSCharacterSet that holds group of valid characters.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>message</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator16CharacterSetRule8validateFS0_FSSSb"></a>
|
||||
<a name="//apple_ref/swift/Method/validate(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator16CharacterSetRule8validateFS0_FSSSb">validate(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Used to validate field.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">validate</span><span class="p">(</span><span class="nv">value</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Bool</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>value</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String to checked for validation.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>Boolean value. True if validation is successful; False if validation fails.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator16CharacterSetRule12errorMessageFS0_FT_SS"></a>
|
||||
<a name="//apple_ref/swift/Method/errorMessage()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator16CharacterSetRule12errorMessageFS0_FT_SS">errorMessage()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Displays error message when text field fails validation.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">errorMessage</span><span class="p">()</span> <span class="o">-></span> <span class="kt">String</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -261,7 +279,7 @@ to another text field is validated.</p>
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -163,7 +181,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -260,7 +278,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -247,7 +265,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -247,7 +265,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,191 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>HexColorRule Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/HexColorRule" class="dashAnchor"></a>
|
||||
<a title="HexColorRule Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">SwiftValidator Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">SwiftValidator Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
HexColorRule Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EmailRule.html">EmailRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ExactLengthRule.html">ExactLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FloatRule.html">FloatRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MinLengthRule.html">MinLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PasswordRule.html">PasswordRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RegexRule.html">RegexRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RequiredRule.html">RequiredRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationError.html">ValidationError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationRule.html">ValidationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Validator.html">Validator</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ZipCodeRule.html">ZipCodeRule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/Rule.html">Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/ValidationDelegate.html">ValidationDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>HexColorRule</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">HexColorRule</span><span class="p">:</span> <span class="kt">RegexRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><code>HexColorRule</code> is a subclass of <code><a href="../Classes/RegexRule.html">RegexRule</a></code>. It is used to verify whether a field is a hexadecimal color.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator12HexColorRulecFMS0_FT7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator12HexColorRulecFMS0_FT7messageSS_S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code>HexaColorRule</code> object to verify that field has text in hexadecimal color format.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"Invalid regular expression"</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>message</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,191 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>IPV4Rule Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/IPV4Rule" class="dashAnchor"></a>
|
||||
<a title="IPV4Rule Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">SwiftValidator Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">SwiftValidator Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
IPV4Rule Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EmailRule.html">EmailRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ExactLengthRule.html">ExactLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FloatRule.html">FloatRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MinLengthRule.html">MinLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PasswordRule.html">PasswordRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RegexRule.html">RegexRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RequiredRule.html">RequiredRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationError.html">ValidationError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationRule.html">ValidationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Validator.html">Validator</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ZipCodeRule.html">ZipCodeRule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/Rule.html">Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/ValidationDelegate.html">ValidationDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>IPV4Rule</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">IPV4Rule</span><span class="p">:</span> <span class="kt">RegexRule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><code>IPV4Rule</code> is a subclass of RegexRule that defines how a IPV4 address validated.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator8IPV4RulecFMS0_FT7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator8IPV4RulecFMS0_FT7messageSS_S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code><a href="../Classes/IPV4Rule.html">IPV4Rule</a></code> object to verify that field has text is an IPV4Rule address.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"Must be a valid IPV4 address"</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>message</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,275 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>ISBNRule Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/ISBNRule" class="dashAnchor"></a>
|
||||
<a title="ISBNRule Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">SwiftValidator Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">SwiftValidator Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
ISBNRule Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EmailRule.html">EmailRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ExactLengthRule.html">ExactLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FloatRule.html">FloatRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MinLengthRule.html">MinLengthRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PasswordRule.html">PasswordRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RegexRule.html">RegexRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RequiredRule.html">RequiredRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationError.html">ValidationError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ValidationRule.html">ValidationRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Validator.html">Validator</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ZipCodeRule.html">ZipCodeRule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/Rule.html">Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/ValidationDelegate.html">ValidationDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>ISBNRule</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">ISBNRule</span><span class="p">:</span> <span class="kt">Rule</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><code>ISBNRule</code> is a subclass of <code><a href="../Protocols/Rule.html">Rule</a></code>. It is used to verify whether a field is a valid ISBN number.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator8ISBNRulecFMS0_FT7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator8ISBNRulecFMS0_FT7messageSS_S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code><a href="../Classes/ISBNRule.html">ISBNRule</a></code> object to verify that field has text that is a ISBN number.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"Enter valid ISBN number"</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>message</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator8ISBNRule8validateFS0_FSSSb"></a>
|
||||
<a name="//apple_ref/swift/Method/validate(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator8ISBNRule8validateFS0_FSSSb">validate(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method used to validate text field.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">validate</span><span class="p">(</span><span class="nv">value</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Bool</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>value</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>String to checked for validation.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>Boolean value. True if validation is successful; False if validation fails.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC14SwiftValidator8ISBNRule12errorMessageFS0_FT_SS"></a>
|
||||
<a name="//apple_ref/swift/Method/errorMessage()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC14SwiftValidator8ISBNRule12errorMessageFS0_FT_SS">errorMessage()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method used to dispaly error message when text field fails validation.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">errorMessage</span><span class="p">()</span> <span class="o">-></span> <span class="kt">String</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>String of error message.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -150,10 +168,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code><a href="../Classes/MaxLengthRule.html">MaxLengthRule</a></code> object that is to validate the length of the text of a text field
|
||||
- parameter length: Maximum character length.
|
||||
- parameter message: String of error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
<p>Initializes a <code><a href="../Classes/MaxLengthRule.html">MaxLengthRule</a></code> object that is to validate the length of the text of a text field.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -294,7 +309,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -150,10 +168,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a <code><a href="../Classes/MaxLengthRule.html">MaxLengthRule</a></code> object that is to validate the length of the text of a text field
|
||||
- parameter length: Minimum character length.
|
||||
- parameter message: String of error message.
|
||||
- returns: An initialized <code><a href="../Classes/MinLengthRule.html">MinLengthRule</a></code> object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
<p>Initializes a <code><a href="../Classes/MaxLengthRule.html">MaxLengthRule</a></code> object that is to validate the length of the text of a text field.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -296,7 +311,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -163,7 +181,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -119,9 +137,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method used to initialize <code><a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a></code> object.
|
||||
- parameter message: Error message that is displayed if validation fails.
|
||||
- returns: An initialized <code><a href="../Classes/PasswordRule.html">PasswordRule</a></code> object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
<p>Initializes a <code><a href="../Classes/PhoneNumberRule.html">PhoneNumberRule</a></code> object. Used to validate that a field has a valid phone number.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -165,7 +181,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -260,7 +278,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -119,7 +137,8 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
|
||||
<p>Initializes <code><a href="../Classes/RequiredRule.html">RequiredRule</a></code> object with error message. Used to validate a field that requires text.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
|
|
@ -246,7 +265,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -200,10 +218,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes <code><a href="../Classes/ValidationError.html">ValidationError</a></code> object with a textField and error.
|
||||
- parameter textField: UITextField that holds textField.
|
||||
- parameter errorMessage: String that holds error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
<p>Initializes <code><a href="../Classes/ValidationError.html">ValidationError</a></code> object with a textField and error.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -268,11 +283,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes ValidationError object with a textField, errorLabel, and errorMessage.
|
||||
- parameter textField: UITextField that holds textField.
|
||||
- parameter errorLabel: UILabel that holds error label.
|
||||
- parameter errorMessage: String that holds error message.
|
||||
- returns: An initialized object, or nil if an object could not be created for some reason that would not result in an exception.</p>
|
||||
<p>Initializes <code><a href="../Classes/ValidationError.html">ValidationError</a></code> object with a textField, errorLabel, and errorMessage.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -342,7 +353,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -303,7 +321,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -217,9 +235,7 @@ validation fields.</p>
|
|||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>This method is used to validate a single field registered to Validator. If validation is unsuccessful,
|
||||
field gets added to errors dictionary.
|
||||
- parameter textField: Holds validator field data.
|
||||
- returns: No return value.</p>
|
||||
field gets added to errors dictionary.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -618,7 +634,7 @@ field gets added to errors dictionary.
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -163,7 +181,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -29,6 +29,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -44,6 +53,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -164,7 +182,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -195,7 +213,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -45,6 +54,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -119,8 +137,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>This method will be called on delegate object when validation is successful.
|
||||
- returns: No return value.</p>
|
||||
<p>This method will be called on delegate object when validation is successful.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -152,8 +169,7 @@
|
|||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>This method will be called on delegate object when validation fails.
|
||||
- returns: No return value.</p>
|
||||
<p>This method will be called on delegate object when validation fails.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
|
|
@ -177,7 +193,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
|
|
@ -29,6 +29,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -44,6 +53,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -95,7 +113,7 @@
|
|||
|
||||
<a href='#swiftvalidator' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h1 id='swiftvalidator'>SwiftValidator</h1>
|
||||
|
||||
<p><a href="https://travis-ci.org/jpotts18/SwiftValidator"><img src="https://travis-ci.org/jpotts18/SwiftValidator.svg?branch=travis-ci" alt="Build Status"></a> <a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible"></a></p>
|
||||
<p><a href="https://travis-ci.org/jpotts18/SwiftValidator"><img src="https://travis-ci.org/jpotts18/SwiftValidator.svg?branch=travis-ci" alt="Build Status"></a> <a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible"></a> <a href="https://codecov.io/github/jpotts18/SwiftValidator?branch=master"><img src="https://codecov.io/github/jpotts18/SwiftValidator/coverage.svg?branch=master" alt="codecov.io"></a></p>
|
||||
|
||||
<p>Swift Validator is a rule-based validation library for Swift.</p>
|
||||
|
||||
|
|
@ -183,7 +201,7 @@
|
|||
<span class="p">}</span>
|
||||
|
||||
</code></pre>
|
||||
<a href='#single_field_validation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='single_field_validation'>Single Field Validation</h3>
|
||||
<a href='#single_field_validation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='single_field_validation'>Single Field Validation</h2>
|
||||
|
||||
<p>You may use single field validation in some cases. This could be useful in situations such as controlling responders:</p>
|
||||
<pre class="highlight swift"><code><span class="c1">// Don't forget to use UITextFieldDelegate</span>
|
||||
|
|
@ -214,6 +232,9 @@
|
|||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<a href='#documentation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='documentation'>Documentation</h2>
|
||||
|
||||
<p>Checkout the docs <a href="http://jpotts18.github.io/SwiftValidator/">here</a> via <a href="https://twitter.com/jazzydocs">@jazzydocs</a>.</p>
|
||||
<a href='#credits' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='credits'>Credits</h2>
|
||||
|
||||
<p>Swift Validator is written and maintained by Jeff Potter <a href="http://twitter.com/jpotts18">@jpotts18</a>.</p>
|
||||
|
|
@ -230,7 +251,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -29,6 +29,15 @@
|
|||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AlphaNumericRule.html">AlphaNumericRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AlphaRule.html">AlphaRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/CharacterSetRule.html">CharacterSetRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/ConfirmationRule.html">ConfirmationRule</a>
|
||||
</li>
|
||||
|
|
@ -44,6 +53,15 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="Classes/FullNameRule.html">FullNameRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/HexColorRule.html">HexColorRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/IPV4Rule.html">IPV4Rule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/ISBNRule.html">ISBNRule</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MaxLengthRule.html">MaxLengthRule</a>
|
||||
</li>
|
||||
|
|
@ -95,7 +113,7 @@
|
|||
|
||||
<a href='#swiftvalidator' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h1 id='swiftvalidator'>SwiftValidator</h1>
|
||||
|
||||
<p><a href="https://travis-ci.org/jpotts18/SwiftValidator"><img src="https://travis-ci.org/jpotts18/SwiftValidator.svg?branch=travis-ci" alt="Build Status"></a> <a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible"></a></p>
|
||||
<p><a href="https://travis-ci.org/jpotts18/SwiftValidator"><img src="https://travis-ci.org/jpotts18/SwiftValidator.svg?branch=travis-ci" alt="Build Status"></a> <a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible"></a> <a href="https://codecov.io/github/jpotts18/SwiftValidator?branch=master"><img src="https://codecov.io/github/jpotts18/SwiftValidator/coverage.svg?branch=master" alt="codecov.io"></a></p>
|
||||
|
||||
<p>Swift Validator is a rule-based validation library for Swift.</p>
|
||||
|
||||
|
|
@ -183,7 +201,7 @@
|
|||
<span class="p">}</span>
|
||||
|
||||
</code></pre>
|
||||
<a href='#single_field_validation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='single_field_validation'>Single Field Validation</h3>
|
||||
<a href='#single_field_validation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='single_field_validation'>Single Field Validation</h2>
|
||||
|
||||
<p>You may use single field validation in some cases. This could be useful in situations such as controlling responders:</p>
|
||||
<pre class="highlight swift"><code><span class="c1">// Don't forget to use UITextFieldDelegate</span>
|
||||
|
|
@ -214,6 +232,9 @@
|
|||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<a href='#documentation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='documentation'>Documentation</h2>
|
||||
|
||||
<p>Checkout the docs <a href="http://jpotts18.github.io/SwiftValidator/">here</a> via <a href="https://twitter.com/jazzydocs">@jazzydocs</a>.</p>
|
||||
<a href='#credits' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='credits'>Credits</h2>
|
||||
|
||||
<p>Swift Validator is written and maintained by Jeff Potter <a href="http://twitter.com/jpotts18">@jpotts18</a>.</p>
|
||||
|
|
@ -230,7 +251,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-02-14)</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/jpotts18/SwiftValidator" target="_blank" rel="external">Jeff Potter</a>. All rights reserved. (Last updated: 2016-04-15)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
|
|
|||
Loading…
Reference in New Issue