-
-
Save lyle-janrain/920e6cd906f919d6138a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by <a href="http://scalaxb.org/">scalaxb</a>. | |
package flow | |
case class Fields(fieldsoption: scalaxb.DataRecord[flow.FieldsOption]*) | |
trait FieldsOption | |
case class Screens(screen: flow.Screen*) | |
case class Form(action: String, | |
authField: Seq[String] = Nil, | |
field: Seq[String] = Nil, | |
name: Option[String] = None) | |
case class Forms(form: flow.Form*) | |
case class Flow(name: String, | |
defaultScreen: String, | |
fields: flow.Fields, | |
screens: flow.Screens, | |
forms: flow.Forms, | |
i18nStrings: String, | |
translations: flow.TranslationsType) | |
case class Message(mixed: Seq[scalaxb.DataRecord[Any]] = Nil, | |
name: String) | |
case class Messages(message: flow.Message*) | |
case class Screen(messages: Option[flow.Messages] = None, | |
next: Option[flow.Next] = None, | |
screenConditionals: Option[flow.ScreenConditionals] = None, | |
isModal: Option[Boolean] = None, | |
source: Option[flow.SourceType] = None, | |
layout: Option[String] = None, | |
dataType: Option[String] = None, | |
typeValue: Option[String] = None, | |
validateOnRender: Option[Boolean] = None, | |
hasUserData: Option[Boolean] = None, | |
modalLoadOnLoad: Option[Boolean] = None, | |
name: Option[String] = None) | |
trait ScreenAll | |
case class Next(mixed: Seq[scalaxb.DataRecord[Any]] = Nil) | |
trait NextAll | |
trait SourceType | |
object SourceType { | |
def fromString(value: String, scope: scala.xml.NamespaceBinding): SourceType = value match { | |
case "client" => Client | |
case "server" => Server | |
} | |
} | |
case object Client extends SourceType { override def toString = "client" } | |
case object Server extends SourceType { override def toString = "server" } | |
case class ScreenConditionals(mixed: Seq[scalaxb.DataRecord[Any]] = Nil) | |
trait ScreenConditionalsAll | |
case class TranslationsType(enu45US: String) | |
/** | |
All possible validations. Not actually to be used in field definitions. The restricted types | |
StringValidations, DateValidations, CheckboxValidations, and PhotoValidations should be used | |
instead. | |
*/ | |
case class Validations(required: Option[flow.ValidationRequired] = None, | |
unique: Option[flow.ValidationUnique] = None, | |
isDate: Option[flow.ValidationIsDate] = None, | |
minYearsAgo: Option[flow.ValidationMinYearsAgo] = None, | |
minLength: Option[flow.ValidationMinLength] = None, | |
maxLength: Option[flow.ValidationMaxLength] = None, | |
matchValue: Option[flow.ValidationMatch] = None, | |
format: Option[flow.ValidationFormat] = None, | |
validFileTypes: Option[flow.ValidationValidFileTypes] = None) | |
trait ValidationsAll | |
/** | |
Validations for string-valued fields. | |
*/ | |
case class StringValidations(required: Option[flow.ValidationRequired] = None, | |
unique: Option[flow.ValidationUnique] = None, | |
minLength: Option[flow.ValidationMinLength] = None, | |
maxLength: Option[flow.ValidationMaxLength] = None, | |
matchValue: Option[flow.ValidationMatch] = None, | |
format: Option[flow.ValidationFormat] = None) | |
trait StringValidationsAll | |
/** | |
Validations for date selection fields. | |
*/ | |
case class DateValidations(required: Option[flow.ValidationRequired] = None, | |
isDate: Option[flow.ValidationIsDate] = None, | |
minYearsAgo: Option[flow.ValidationMinYearsAgo] = None) | |
trait DateValidationsAll | |
/** | |
Validations for photo management fields. | |
*/ | |
case class PhotoValidations(validFileTypes: Option[flow.ValidationValidFileTypes] = None) | |
trait PhotoValidationsAll | |
/** | |
Validations for checkbox-type fields. | |
*/ | |
case class CheckboxValidations(required: Option[flow.ValidationRequired] = None) | |
trait CheckboxValidationsAll | |
/** | |
The field requires a value. For string-valued fields the value cannot be blank. | |
For checkbox fields the box must be checked. | |
*/ | |
case class ValidationRequired(validationModelSequence1: flow.ValidationModelSequence) | |
/** | |
The field's value must be unique across all users. | |
*/ | |
case class ValidationUnique(validationModelSequence1: flow.ValidationModelSequence) | |
/** | |
The field must contain a valid date (e.g. not 2012-02-30). | |
*/ | |
case class ValidationIsDate(validationModelSequence1: flow.ValidationModelSequence) | |
/** | |
An upper-bound on a (date-valued) field's value. | |
*/ | |
case class ValidationMinYearsAgo(threshold: BigInt, | |
validationModelSequence2: flow.ValidationModelSequence) | |
/** | |
A lower-bound on the length of a (string-valued) field's value. | |
*/ | |
case class ValidationMinLength(threshold: BigInt, | |
validationModelSequence2: flow.ValidationModelSequence) | |
/** | |
An upper-bound on the length of a (string-valued) field's value. | |
*/ | |
case class ValidationMaxLength(threshold: BigInt, | |
validationModelSequence2: flow.ValidationModelSequence) | |
/** | |
The field's value must be equal to another field's. | |
*/ | |
case class ValidationMatch(field: String, | |
validationModelSequence2: flow.ValidationModelSequence) | |
trait Name | |
object Name { | |
def fromString(value: String, scope: scala.xml.NamespaceBinding): Name = value match { | |
case "email" => Email | |
case "alpha" => Alpha | |
case "alphaExtended" => AlphaExtended | |
case "alphaExtendedSpaces" => AlphaExtendedSpaces | |
case "alphaNumeric" => AlphaNumeric | |
case "alphaNumericExtended" => AlphaNumericExtended | |
case "i18nAlphaNumeric" => I18nAlphaNumeric | |
case "numeric" => Numeric | |
case "numericReal" => NumericReal | |
case "phone" => Phone | |
case "phoneInternational" => PhoneInternational | |
case "zipCode" => ZipCode | |
case "zipCode+4" => ZipCodeu434 | |
} | |
} | |
case object Email extends Name { override def toString = "email" } | |
case object Alpha extends Name { override def toString = "alpha" } | |
case object AlphaExtended extends Name { override def toString = "alphaExtended" } | |
case object AlphaExtendedSpaces extends Name { override def toString = "alphaExtendedSpaces" } | |
case object AlphaNumeric extends Name { override def toString = "alphaNumeric" } | |
case object AlphaNumericExtended extends Name { override def toString = "alphaNumericExtended" } | |
case object I18nAlphaNumeric extends Name { override def toString = "i18nAlphaNumeric" } | |
case object Numeric extends Name { override def toString = "numeric" } | |
case object NumericReal extends Name { override def toString = "numericReal" } | |
case object Phone extends Name { override def toString = "phone" } | |
case object PhoneInternational extends Name { override def toString = "phoneInternational" } | |
case object ZipCode extends Name { override def toString = "zipCode" } | |
case object ZipCodeu434 extends Name { override def toString = "zipCode+4" } | |
/** | |
Restricts the format of a (string-valued) field's value. | |
*/ | |
case class ValidationFormat(name: flow.Name, | |
validationModelSequence2: flow.ValidationModelSequence) | |
trait MimeType | |
object MimeType { | |
def fromString(value: String, scope: scala.xml.NamespaceBinding): MimeType = value match { | |
case "image/jpeg" => Imageu47jpeg | |
case "image/png" => Imageu47png | |
case "image/gif" => Imageu47gif | |
} | |
} | |
case object Imageu47jpeg extends MimeType { override def toString = "image/jpeg" } | |
case object Imageu47png extends MimeType { override def toString = "image/png" } | |
case object Imageu47gif extends MimeType { override def toString = "image/gif" } | |
/** | |
The set of acceptable file types. | |
*/ | |
case class MimeTypes(mimeType: flow.MimeType*) | |
/** | |
Restricts the file-types of files uploaded with the field. | |
*/ | |
case class ValidationValidFileTypes(mimeTypes: flow.MimeTypes, | |
validationModelSequence2: flow.ValidationModelSequence) | |
trait Fieldable { | |
val name: String | |
} | |
case class Field(name: String) extends Fieldable | |
case class InputTextField(fieldCommonElementsGroupAll2: scalaxb.DataRecord[Any], | |
name: String) extends Fieldable with FieldsOption | |
case class InputPasswordField(fieldCommonElementsGroupAll2: scalaxb.DataRecord[Any], | |
name: String) extends Fieldable with FieldsOption | |
case class InputEmailField(fieldCommonElementsGroupAll2: scalaxb.DataRecord[Any], | |
name: String) extends Fieldable with FieldsOption | |
case class TextareaField(textareaFieldGroupAll2: scalaxb.DataRecord[Any], | |
name: String) extends Fieldable with FieldsOption | |
case class ButtonSubmitField(buttonFieldGroupAll2: scalaxb.DataRecord[Any], | |
name: String) extends Fieldable with FieldsOption | |
case class SelectField(selectFieldGroupAll2: Option[scalaxb.DataRecord[Any]] = None, | |
name: String) extends Fieldable with FieldsOption | |
case class Subfields(country: Option[flow.StringEditSubfield] = None, | |
streetAddress1: Option[flow.StringEditSubfield] = None, | |
streetAddress2: Option[flow.StringEditSubfield] = None, | |
city: Option[flow.StringEditSubfield] = None, | |
regionCode: Option[flow.StringEditSubfield] = None, | |
postalCode: Option[flow.StringEditSubfield] = None) | |
trait SubfieldsAll | |
case class AddressEditField(label: Option[String] = None, | |
showPublicPrivateToggle: Option[Boolean] = None, | |
subfields: Option[flow.Subfields] = None, | |
name: String) extends Fieldable with FieldsOption | |
trait AddressEditFieldAll | |
case class Subfields2(country: Option[flow.StringDisplaySubfield] = None, | |
streetAddress1: Option[flow.StringDisplaySubfield] = None, | |
streetAddress2: Option[flow.StringDisplaySubfield] = None, | |
city: Option[flow.StringDisplaySubfield] = None, | |
regionCode: Option[flow.StringDisplaySubfield] = None, | |
postalCode: Option[flow.StringDisplaySubfield] = None) | |
trait Subfields2All | |
case class AddressDisplayField(label: Option[String] = None, | |
subfields: Option[flow.Subfields2] = None, | |
name: String) extends Fieldable with FieldsOption | |
trait AddressDisplayFieldAll | |
case class Subfields3(givenName: Option[flow.StringEditSubfield] = None, | |
middleName: Option[flow.StringEditSubfield] = None, | |
familyName: Option[flow.StringEditSubfield] = None) | |
trait Subfields3All | |
case class FullNameEditField(label: Option[String] = None, | |
showPublicPrivateToggle: Option[Boolean] = None, | |
subfields: Option[flow.Subfields3] = None, | |
name: String) extends Fieldable with FieldsOption | |
trait FullNameEditFieldAll | |
case class Subfields4(givenName: Option[flow.StringDisplaySubfield] = None, | |
middleName: Option[flow.StringDisplaySubfield] = None, | |
familyName: Option[flow.StringDisplaySubfield] = None) | |
trait Subfields4All | |
case class FullNameDisplayField(label: Option[String] = None, | |
subfields: Option[flow.Subfields4] = None, | |
name: String) extends Fieldable with FieldsOption | |
trait FullNameDisplayFieldAll | |
case class Subfields5(year: Option[flow.PlaceholderOnlySubfield] = None, | |
month: Option[flow.PlaceholderOnlySubfield] = None, | |
day: Option[flow.PlaceholderOnlySubfield] = None) | |
trait Subfields5All | |
case class DateEditField(label: Option[String] = None, | |
showPublicPrivateToggle: Option[Boolean] = None, | |
captureSchemaPath: Option[String] = None, | |
validation: Option[flow.DateValidations] = None, | |
subfields: Option[flow.Subfields5] = None, | |
name: String) extends Fieldable with FieldsOption | |
trait DateEditFieldAll | |
case class DateDisplayField(label: Option[String] = None, | |
captureSchemaPath: Option[String] = None, | |
name: String) extends Fieldable with FieldsOption | |
trait DateDisplayFieldAll | |
case class StringEditSubfield(captureSchemaPath: Option[String] = None, | |
placeholder: Option[flow.FieldPlaceholder] = None, | |
defaultValue: Option[String] = None, | |
validation: Option[flow.StringValidations] = None) | |
trait StringEditSubfieldAll | |
case class StringDisplaySubfield(captureSchemaPath: Option[String] = None, | |
defaultValue: Option[String] = None) | |
trait StringDisplaySubfieldAll | |
case class PlaceholderOnlySubfield(placeholder: Option[flow.FieldPlaceholder] = None) | |
trait PlaceholderOnlySubfieldAll | |
case class FieldDisablePublicPrivate(value: String) | |
case class FieldPubliPrivateToggle(value: String) | |
case class FieldPlaceholder(value: String) | |
case class FieldLabel(value: String) | |
case class FieldDisplaySavedValue(value: String) | |
case class FieldValue(value: String) | |
case class FieldValueInLocalStorage(value: String) | |
case class FieldTip(value: String) | |
case class FieldPublicPrivateToggle(value: Boolean) | |
case class FieldHtmlAttributes(classValue: Option[String] = None) | |
trait FieldHtmlAttributesAll | |
/** put any raw HTML within this block to be rendered within this element | |
*/ | |
case class FieldHtmlElementContent(mixed: Seq[scalaxb.DataRecord[Any]] = Nil) | |
case class FieldOptions(option: flow.FieldOption*) | |
case class FieldOption(value: String, | |
disabled: String, | |
value: Option[String] = None) | |
case class FieldModify(value: String) | |
trait FieldCommonElementsGroupAll | |
trait TextareaFieldGroupAll | |
trait SelectFieldGroupAll | |
trait ButtonFieldGroupAll | |
case class ValidationModelSequence(errorMessage: String) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment