001: /**
002: * LibreSource
003: * Copyright (C) 2004-2008 Artenum SARL / INRIA
004: * http://www.libresource.org - contact@artenum.com
005: *
006: * This file is part of the LibreSource software,
007: * which can be used and distributed under license conditions.
008: * The license conditions are provided in the LICENSE.TXT file
009: * at the root path of the packaging that enclose this file.
010: * More information can be found at
011: * - http://dev.libresource.org/home/license
012: *
013: * Initial authors :
014: *
015: * Guillaume Bort / INRIA
016: * Francois Charoy / Universite Nancy 2
017: * Julien Forest / Artenum
018: * Claude Godart / Universite Henry Poincare
019: * Florent Jouille / INRIA
020: * Sebastien Jourdain / INRIA / Artenum
021: * Yves Lerumeur / Artenum
022: * Pascal Molli / Universite Henry Poincare
023: * Gerald Oster / INRIA
024: * Mariarosa Penzi / Artenum
025: * Gerard Sookahet / Artenum
026: * Raphael Tani / INRIA
027: *
028: * Contributors :
029: *
030: * Stephane Bagnier / Artenum
031: * Amadou Dia / Artenum-IUP Blois
032: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
033: */package org.libresource;
034:
035: import java.io.Serializable;
036:
037: import java.net.URI;
038:
039: import java.util.Date;
040:
041: /**
042: * LibreSource
043: *
044: * @author <a href="mailto:bort@loria.fr">Guillaume Bort</a> - <a
045: * href="http://www.inria.fr">INRIA Lorraine</a>
046: */
047: public class LibresourceResourceValue implements Serializable {
048: private URI uri;
049: private String shortName;
050: private LibresourceResourceIdentifier resourceIdentifier;
051: private boolean isEmpty = false;
052: private Date creationDate;
053: private Date updateDate;
054: private URI owner;
055:
056: public URI getUri() {
057: return uri;
058: }
059:
060: public void setUri(URI uri) {
061: this .uri = uri;
062: }
063:
064: public String getShortResourceName() {
065: return shortName;
066: }
067:
068: public void setShortResourceName(String string) {
069: this .shortName = string;
070: }
071:
072: public LibresourceResourceIdentifier getLibresourceResourceIdentifier() {
073: return resourceIdentifier;
074: }
075:
076: public void setLibresourceResourceIdentifier(
077: LibresourceResourceIdentifier resourceIdentifier) {
078: this .resourceIdentifier = resourceIdentifier;
079: }
080:
081: public boolean getIsEmpty() {
082: return isEmpty;
083: }
084:
085: public void setIsEmpty(boolean value) {
086: this .isEmpty = value;
087: }
088:
089: public String toString() {
090: return uri + "; " + shortName;
091: }
092:
093: public Date getCreationDate() {
094: return creationDate;
095: }
096:
097: public void setCreationDate(Date creationDate) {
098: this .creationDate = creationDate;
099: }
100:
101: public Date getUpdateDate() {
102: return updateDate;
103: }
104:
105: public void setUpdateDate(Date updateDate) {
106: this .updateDate = updateDate;
107: }
108:
109: public URI getOwner() {
110: return owner;
111: }
112:
113: public void setOwner(URI owner) {
114: this.owner = owner;
115: }
116: }
|