Specifications - nativelogix/slush-xquerrail GitHub Wiki
#Specification For XQuerrail Slush Generator ##Application
- Name : String
- Application Namespace : {prefix}:{namespace}
- Content Namespace : {prefix}:{namespace}
- Collation : String
- Create Models : Boolean
- Model Names : ArrayList
- Create Controller Entry : Boolean
- Create Controller Module : Boolean
- Naming Convention : (Pascal|Camel):((p) Plural|(s) Singular)
- Create Roles : Boolean
- Role Names : ArrayList
##Model
- Name : String
- Persistence : [directory|document|abstract]
- Base Class : [choice]
- Default Namespace : [Choice]
- Default Collation : [Choice]
- Fields : [fieldNames | or comma seperated]
- Auto Label : Boolean
- Create Controller : boolean
- Controller name : [default from name]
- Create Views : boolean
- Override Views : [choice]
##Controller :
- Name : String
- From Model : [choice from model names or blank for empty]
- Override Functions : [choice list from base controllers]
##Views :
- Name of controller : [choice from domain]
- Name of View : [choice : *, String]
- Formats : [choice : *, json,xml,html]
##Optionlist [slush xquerrail create optionlist]
- Name : String
- Values : ArrayList
###Property Shortcuts Determines shortcuts to support types:
ex. Id[id],CustomerName[s],CreatedDate[ct],CreateUser[cu] ####Basic Types
- String [s]
- Decimal [dc]
- Double [db]
- Float [f]
- Long [l]
- Integer [i]
- Boolean [b]
- Date [dt]
- DateTime [dtm]
- Time [tm]
####Custom Types
- Identity [id]
- IRI [iri]
- Create Timestamp [ct]
- Create User [cu]
- Update timestamp [ut]
- Update User [uu]
- Triple [tr {s} {p} {o}] - Spaces between values any values not prompted will be user supplied values.
- Reference [ref {model-name}]