Exemplo n.º 1
0
 private void parseMandatory(String value) {
   StringTokenizer tokenizer = new StringTokenizer(value, Constants.MANDATORY_DELIMITER);
   while (tokenizer.hasMoreTokens()) {
     String token = (String) tokenizer.nextElement();
     token = token.trim();
     if (token.length() > 0) mandatory.add(token);
   }
 }
Exemplo n.º 2
0
 private void parseExport(String header) {
   StringTokenizer tokenizer = new StringTokenizer(header, Constants.PARAMETER_DELIMITER);
   this.name = tokenizer.nextToken().trim();
   while (tokenizer.hasMoreTokens()) {
     String token = (String) tokenizer.nextElement();
     if (token.indexOf(Constants.DIRECTIVE_EQUALS) != -1) parseDirective(token);
     else if (token.indexOf(Constants.ATTRIBUTE_EQUALS) != -1) parseAttribute(token);
   }
 }