Changeset 4509 for vlo/branches/vlo-3.0/vlo-commons/src/main/java/eu/clarin/cmdi/vlo/config/VloConfig.java
- Timestamp:
- 02/13/14 14:42:31 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.0/vlo-commons/src/main/java/eu/clarin/cmdi/vlo/config/VloConfig.java
r4507 r4509 4 4 import java.net.URLEncoder; 5 5 import java.util.List; 6 import org.simpleframework.xml.Root; 6 import javax.xml.bind.annotation.XmlElement; 7 import javax.xml.bind.annotation.XmlElementWrapper; 8 import javax.xml.bind.annotation.XmlRootElement; 7 9 8 10 /** … … 11 13 * @author keeloo, twagoo 12 14 */ 13 @ Root15 @XmlRootElement(name = "VloConfig") 14 16 public class VloConfig { 15 17 … … 41 43 private int solrTimeOut = 0; 42 44 43 private List<DataRoot> dataRoots; 45 @XmlElementWrapper(name="dataRoots") 46 @XmlElement(name="DataRoot") 47 private List<DataRoot> dataRoot; 44 48 45 49 private int maxFileSize = 0; … … 67 71 68 72 // services 69 private String FederatedContentSearchUrl = "";73 private String federatedContentSearchUrl = ""; 70 74 71 75 private boolean useHandleResolver = false; 72 76 77 @XmlElement 73 78 private String profileSchemaUrl = ""; 74 79 … … 77 82 private String handleServerUrl = ""; 78 83 84 @XmlElement 79 85 private String imdiBrowserUrl = ""; 80 86 … … 93 99 * An array of facetFields<br><br> 94 100 * 95 * In case of an array of elements, the number of elements in the array 96 * needs to be communicated to the Simple framework. The following would be 97 * a correct description of an array of three facet fields<br><br> 98 * 99 * {@literal <facetFields length="3">}<br> {@literal <facetField>}<br> 100 * {@literal fieldOne}<br> {@literal </facetField>}<br> 101 * {@literal <facetField>}<br> {@literal fieldTwo}<br> 102 * {@literal </facetField>}<br> {@literal <facetField>}<br> 103 * {@literal fieldThree}<br> {@literal </facetField>}<br> 104 * {@literal </facetFields>}<br><br> 105 * 106 * To let Simple now it has to interpret the facetFields element as an 107 * array, use the ElementArray directive. Use the directive to let Simple 108 * know that the elements inside 'facetFields' are named 'facetField'. 109 */ 110 //Array(entry = "facetField") 111 private String[] facetFields = {"", "", ""}; 101 * To let JAXB know it has to interpret the facetFields element as an array, 102 * use the XmlElementWrapper directive. Use the directive to let JAXB know 103 * that the elements inside 'facetFields' are named 'facetField'. 104 */ 105 @XmlElementWrapper(name = "facetFields") 106 private String[] facetField = {"", "", ""}; 112 107 113 108 // test related parameters … … 182 177 * @return the value 183 178 */ 184 public boolean deleteAllFirst() {179 public boolean getDeleteAllFirst() { 185 180 return deleteAllFirst; 186 181 } … … 351 346 */ 352 347 public List<DataRoot> getDataRoots() { 353 return dataRoot s;348 return dataRoot; 354 349 } 355 350 … … 363 358 */ 364 359 public void setDataRoots(List<DataRoot> param) { 365 dataRoot s= param;360 dataRoot = param; 366 361 } 367 362 … … 506 501 * @param param the value 507 502 */ 508 public void set ProfileSchemaUrl(String param) {503 public void setComponentRegistryProfileSchema(String param) { 509 504 profileSchemaUrl = param; 510 505 } … … 567 562 * @return the value 568 563 */ 569 public String getI MDIBrowserUrl(String handle) {564 public String getImdiBrowserUrl(String handle) { 570 565 String result; 571 566 try { … … 585 580 * @param param the value 586 581 */ 587 public void setI MDIBrowserUrl(String param) {582 public void setImdiBrowserUrl(String param) { 588 583 imdiBrowserUrl = param; 589 584 } … … 645 640 * @return the value 646 641 */ 642 @XmlElement(name = "FederatedContentSearchUrl") 647 643 public String getFederatedContentSearchUrl() { 648 return FederatedContentSearchUrl;644 return federatedContentSearchUrl; 649 645 } 650 646 … … 658 654 */ 659 655 public void setFederatedContentSearchUrl(String param) { 660 FederatedContentSearchUrl = param;656 federatedContentSearchUrl = param; 661 657 } 662 658 … … 694 690 */ 695 691 public String[] getFacetFields() { 696 return facetField s;692 return facetField; 697 693 } 698 694 … … 706 702 */ 707 703 public void setFacetFields(String[] param) { 708 facetField s= param;704 facetField = param; 709 705 } 710 706
Note: See TracChangeset
for help on using the changeset viewer.