Changeset 27

Show
Ignore:
Timestamp:
07/26/05 10:45:57 (3 years ago)
Author:
schst
Message:

Cleanup: Removed some obsolete methods, renamed setName() to setKeyAttribute()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/net/schst/XJConf/DefinitionParser.java

    r26 r27  
    8686            String keyAtt = atts.getValue("keyAttribute"); 
    8787            if (keyAtt != null) { 
    88                 def.setName("__attribute", atts.getValue("keyAttribute")); 
     88                def.setKeyAttribute(atts.getValue("keyAttribute")); 
    8989            } else { 
    9090                String key = atts.getValue("key"); 
  • trunk/src/net/schst/XJConf/TagDefinition.java

    r25 r27  
    6868     
    6969    /** 
    70      * Add an attribute to the tag 
    71      *  
    72      * @param name 
    73      * @param type 
    74      * @throws Exception 
    75      */ 
    76     public void addAttribute(String name, String type) throws Exception { 
    77         this.atts.add(new AttributeDefinition(name, type)); 
    78     } 
    79      
    80     /** 
    8170     * set the name of the value 
    8271     *  
     
    8877     
    8978    /** 
    90      * set the name of the value 
    91     *  
     79     * Set the attribute that will be used as key. 
     80    *  
    9281     * @return   name of the value 
    9382     */ 
    94     public void setName(String name, String att) { 
    95        this.name = name
     83    public void setKeyAttribute(String att) { 
     84        this.name = "__attribute"
    9685        this.nameAttribute = att; 
    9786    } 
     
    126115        return this.name; 
    127116    } 
    128      
     117 
    129118    /** 
    130119     * get the type of the tag