Package fr.abes.cbs.notices
Class Zone
- java.lang.Object
-
- fr.abes.cbs.notices.Zone
-
- Direct Known Subclasses:
ZoneEtatColl
public class Zone extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected char[]indicateursprotected booleanisProtectedprotected Stringlabelprotected TYPE_NOTICEtypeNoticeprotected Stringvaleur
-
Constructor Summary
Constructors Constructor Description Zone(String label, TYPE_NOTICE typeNotice)Zone(String label, TYPE_NOTICE typeNotice, char[] indicateurs)Zone(String label, TYPE_NOTICE typeNotice, char[] indicateurs, String value)Zone(String label, TYPE_NOTICE typeNotice, com.google.common.collect.Table<Integer,String,String> subLabelTable)Zone(String label, TYPE_NOTICE typeNotice, com.google.common.collect.Table<Integer,String,String> subLabelTable, char[] indicateurs)Zone(String label, TYPE_NOTICE typeNotice, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddFollowingSequenceToString(StringBuilder zone, List<String> sequence, com.google.common.collect.Table<Integer,String,String> tableWithoutDollar)Ajoute à zone les sous-zones suivants une séquenceprotected voidaddNormalToString(StringBuilder zone, String labelSpecification, com.google.common.collect.Table<Integer,String,String> tableWithoutDollar)Ajoute à zone les sous-zones suivant l'ordre d'ajoutvoidaddSubLabel(String subLabel, String value)Permet l'ajout d'une sous zone dans une zone à la suite les unes des autresvoiddeleteSubLabel(String subLabel)Supprime toute les sous-zones subLabel de la zonevoideditSubLabel(String subLabel, String value)Remplace toutes les valeurs des sous-zones subLabel par valueStringfindSubLabel(String subLabel)Retourne la valeur de la première sous-zone subLabelStringgetLabelForOutput()Récupération du label de la zone au format Stringcom.google.common.collect.ListMultimap<String,String>getSubLabelList()Retourne les sous-zones et valeurs de la zoneprotected com.google.common.collect.Table<Integer,String,String>removeDollar()Crée une table sans les $ dans les noms des sous-zonesStringtoString()Ecrit la zone selon la spécification
-
-
-
Field Detail
-
label
protected String label
-
isProtected
protected boolean isProtected
-
valeur
protected String valeur
-
indicateurs
protected char[] indicateurs
-
typeNotice
protected TYPE_NOTICE typeNotice
-
-
Constructor Detail
-
Zone
public Zone(String label, TYPE_NOTICE typeNotice, com.google.common.collect.Table<Integer,String,String> subLabelTable) throws ZoneException
- Throws:
ZoneException
-
Zone
public Zone(String label, TYPE_NOTICE typeNotice, com.google.common.collect.Table<Integer,String,String> subLabelTable, char[] indicateurs) throws ZoneException
- Throws:
ZoneException
-
Zone
public Zone(String label, TYPE_NOTICE typeNotice, String value) throws ZoneException
- Throws:
ZoneException
-
Zone
public Zone(String label, TYPE_NOTICE typeNotice, char[] indicateurs) throws ZoneException
- Throws:
ZoneException
-
Zone
public Zone(String label, TYPE_NOTICE typeNotice, char[] indicateurs, String value) throws ZoneException
- Throws:
ZoneException
-
Zone
public Zone(String label, TYPE_NOTICE typeNotice) throws ZoneException
- Throws:
ZoneException
-
-
Method Detail
-
addSubLabel
public void addSubLabel(String subLabel, String value) throws ZoneException
Permet l'ajout d'une sous zone dans une zone à la suite les unes des autres- Parameters:
subLabel-value-- Throws:
ExceptionZoneException
-
deleteSubLabel
public void deleteSubLabel(String subLabel)
Supprime toute les sous-zones subLabel de la zone- Parameters:
subLabel-
-
getSubLabelList
public com.google.common.collect.ListMultimap<String,String> getSubLabelList()
Retourne les sous-zones et valeurs de la zone- Returns:
-
editSubLabel
public void editSubLabel(String subLabel, String value)
Remplace toutes les valeurs des sous-zones subLabel par value- Parameters:
subLabel-value-
-
findSubLabel
public String findSubLabel(String subLabel)
Retourne la valeur de la première sous-zone subLabel- Parameters:
subLabel-- Returns:
-
toString
public String toString()
Ecrit la zone selon la spécification
-
removeDollar
protected com.google.common.collect.Table<Integer,String,String> removeDollar()
Crée une table sans les $ dans les noms des sous-zones- Returns:
-
getLabelForOutput
public String getLabelForOutput()
Récupération du label de la zone au format String- Returns:
- l'intitulé de la zone prêt à être écrit dans la notice au format String
-
addFollowingSequenceToString
protected void addFollowingSequenceToString(StringBuilder zone, List<String> sequence, com.google.common.collect.Table<Integer,String,String> tableWithoutDollar)
Ajoute à zone les sous-zones suivants une séquence- Parameters:
zone-sequence-tableWithoutDollar-
-
addNormalToString
protected void addNormalToString(StringBuilder zone, String labelSpecification, com.google.common.collect.Table<Integer,String,String> tableWithoutDollar)
Ajoute à zone les sous-zones suivant l'ordre d'ajout- Parameters:
zone-labelSpecification-tableWithoutDollar-
-
-