diff options
Diffstat (limited to 'src/com/p4square/f1oauth/Attribute.java')
-rw-r--r-- | src/com/p4square/f1oauth/Attribute.java | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/src/com/p4square/f1oauth/Attribute.java b/src/com/p4square/f1oauth/Attribute.java index cc7cfc4..64f2507 100644 --- a/src/com/p4square/f1oauth/Attribute.java +++ b/src/com/p4square/f1oauth/Attribute.java @@ -12,11 +12,41 @@ import java.util.Date; * @author Jesse Morgan <jesse@jesterpm.net> */ public class Attribute { + private final String mAttributeName; + private String mId; private Date mStartDate; private Date mEndDate; private String mComment; /** + * @param name The attribute name. + */ + public Attribute(final String name) { + mAttributeName = name; + } + + /** + * @return the Attribute name. + */ + public String getAttributeName() { + return mAttributeName; + } + + /** + * @return the id of this specific attribute instance. + */ + public String getId() { + return mId; + } + + /** + * Set the attribute id to id. + */ + public void setId(final String id) { + mId = id; + } + + /** * @return the start date for the attribute. */ public Date getStartDate() { @@ -26,7 +56,7 @@ public class Attribute { /** * Set the start date for the attribute. */ - public void setStartDate(Date date) { + public void setStartDate(final Date date) { mStartDate = date; } @@ -40,7 +70,7 @@ public class Attribute { /** * Set the end date for the attribute. */ - public void setEndDate(Date date) { + public void setEndDate(final Date date) { mEndDate = date; } @@ -54,7 +84,7 @@ public class Attribute { /** * Set the comment on the attribute. */ - public void setComment(String comment) { + public void setComment(final String comment) { mComment = comment; } } |