Changeset 27
- Timestamp:
- 07/26/05 10:45:57 (3 years ago)
- Files:
-
- trunk/src/net/schst/XJConf/DefinitionParser.java (modified) (1 diff)
- trunk/src/net/schst/XJConf/TagDefinition.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/net/schst/XJConf/DefinitionParser.java
r26 r27 86 86 String keyAtt = atts.getValue("keyAttribute"); 87 87 if (keyAtt != null) { 88 def.set Name("__attribute",atts.getValue("keyAttribute"));88 def.setKeyAttribute(atts.getValue("keyAttribute")); 89 89 } else { 90 90 String key = atts.getValue("key"); trunk/src/net/schst/XJConf/TagDefinition.java
r25 r27 68 68 69 69 /** 70 * Add an attribute to the tag71 *72 * @param name73 * @param type74 * @throws Exception75 */76 public void addAttribute(String name, String type) throws Exception {77 this.atts.add(new AttributeDefinition(name, type));78 }79 80 /**81 70 * set the name of the value 82 71 * … … 88 77 89 78 /** 90 * set the name of the value91 *79 * Set the attribute that will be used as key. 80 * 92 81 * @return name of the value 93 82 */ 94 public void set Name(String name,String att) {95 this.name = name;83 public void setKeyAttribute(String att) { 84 this.name = "__attribute"; 96 85 this.nameAttribute = att; 97 86 } … … 126 115 return this.name; 127 116 } 128 117 129 118 /** 130 119 * get the type of the tag
