Ignore:
Timestamp:
Jul 12, 2012, 10:54:46 AM (12 years ago)
Author:
casties
Branch:
default
Message:

new internal actor class for creator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/Annotation.java

    r8 r9  
    4848   
    4949    /**
    50      * The URI of the creator of this annotation.
     50     * The creator of this annotation.
    5151     */
    52     protected String creatorUri;
    53    
    54     /**
    55      * The full name of the creator of this annotation.
    56      */
    57     protected String creatorName;
     52    protected Actor creator;
    5853   
    5954    /**
     
    149144
    150145    /**
     146     * @return the creator
     147     */
     148    public Actor getCreator() {
     149        return creator;
     150    }
     151
     152    /**
     153     * @param creator the creator to set
     154     */
     155    public void setCreator(Actor creator) {
     156        this.creator = creator;
     157    }
     158
     159    /**
    151160     * @return the creatorUri
    152161     */
    153162    public String getCreatorUri() {
    154         return creatorUri;
    155     }
    156 
    157     /**
    158      * @param creatorUri the creatorUri to set
    159      */
    160     public void setCreatorUri(String creatorUri) {
    161         this.creatorUri = creatorUri;
     163        if (creator != null) {
     164            return creator.getUri();
     165        }
     166        return null;
    162167    }
    163168
     
    166171     */
    167172    public String getCreatorName() {
    168         return creatorName;
    169     }
    170 
    171     /**
    172      * @param creatorName the creatorName to set
    173      */
    174     public void setCreatorName(String creatorName) {
    175         this.creatorName = creatorName;
     173        if (creator != null) {
     174            return creator.getName();
     175        }
     176        return null;
    176177    }
    177178
Note: See TracChangeset for help on using the changeset viewer.