+
+ protected String separator = ",";// the basic separator, used for example to separate states when building a description
+ // of a CategoricalData
+ private int option = 0; // option used to return either the text, the label or the abbreviation of a Representation.
+ // By default a builder returns the label
+
+
+ /**
+ * Sets the builder to return the abbreviation contained in the Representation element of an object
+ */
+ public void returnAbbreviatedLabels() {
+ option=1;
+ }
+
+ /**
+ * Sets the builder to return the text contained in the Representation element of an object
+ */
+ public void returnTexts() {
+ option=2;
+ }
+
+ /**
+ * Sets the builder to return the label contained in the Representation element of an object
+ */
+ public void returnLabels() {
+ option=0;
+ }
+
+ public void setSeparator(String newSeparator) {
+ separator = newSeparator;
+ }
+
+ public String getSeparator() {
+ return separator;
+ }
+
+ /**
+ * Returns the TextData element with the description of the according DescriptionElement
+ *
+ * @param descriptionElement
+ * @param languages
+ * @return
+ */