public class FieldFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
fieldName |
protected int |
maxOccur |
protected int |
minOccur |
protected ExtensionFactory |
parentFactory |
protected Map<String,String> |
tagValues |
protected WikittyTypes |
type |
protected boolean |
unique |
| Constructor and Description |
|---|
FieldFactory(ExtensionFactory parentFactory,
String fieldName,
WikittyTypes type) |
| Modifier and Type | Method and Description |
|---|---|
FieldFactory |
addField(String name,
WikittyTypes type) |
FieldFactory |
addTagValue(String tag,
String value) |
FieldFactory |
allowed(String values)
Ajoute la liste de valeurs autorises pour ce champs.
|
FieldFactory |
allowedQuery(String allowedQuery) |
protected void |
append() |
FieldFactory |
choice(String values) |
FieldFactory |
choiceQuery(String choiceQuery) |
FieldFactory |
crypt(String algo,
String password)
Ajoute le tag crypt au champs
|
WikittyExtension |
extension() |
FieldFactory |
indexed()
Met a vrai la valeur indexed
|
FieldFactory |
max(String v) |
FieldFactory |
maxOccur(int max) |
FieldFactory |
maxQuery(String query) |
FieldFactory |
min(String v) |
FieldFactory |
minOccur(int min) |
FieldFactory |
minQuery(String query) |
FieldFactory |
notIndexed()
Met a false la valeur indexed
|
FieldFactory |
notNull() |
FieldFactory |
pattern(String pattern)
Ajout le pattern que doit respecter le champs.
|
FieldFactory |
subtype(String type) |
FieldFactory |
unique()
Si le champs est une collection indique que la collection ne peut pas
contenir de doublon (Set)
|
protected ExtensionFactory parentFactory
protected String fieldName
protected WikittyTypes type
protected int minOccur
protected int maxOccur
protected boolean unique
public FieldFactory(ExtensionFactory parentFactory, String fieldName, WikittyTypes type)
public FieldFactory addField(String name, WikittyTypes type)
public WikittyExtension extension()
protected void append()
public FieldFactory maxOccur(int max)
public FieldFactory minOccur(int min)
public FieldFactory unique()
public FieldFactory notNull()
public FieldFactory crypt(String algo, String password)
algo - l'algo de cryptage par exemple Blowfishpassword - le mot de passe, ou null pour utiliser le mot de passe generalpublic FieldFactory allowed(String values)
values - La liste de valeur en representation chaine (le separateur
est la virgule)public FieldFactory allowedQuery(String allowedQuery)
public FieldFactory choice(String values)
public FieldFactory choiceQuery(String choiceQuery)
public FieldFactory indexed()
public FieldFactory notIndexed()
public FieldFactory pattern(String pattern)
pattern - public FieldFactory subtype(String type)
public FieldFactory min(String v)
public FieldFactory minQuery(String query)
public FieldFactory max(String v)
public FieldFactory maxQuery(String query)
public FieldFactory addTagValue(String tag, String value)
Copyright © 2009–2014 CodeLutin. All rights reserved.