001 002/* 003 * Copyright (C) 2011 Archie L. Cobbs. All rights reserved. 004 * 005 * $Id$ 006 */ 007 008package org.dellroad.jibxbindings.twilio.restapi; 009 010import java.net.URI; 011import java.util.Date; 012 013/** 014 * Abstract superclass for XML represenations of REST resources. 015 */ 016public abstract class Resource { 017 018 private Date dateCreated; 019 private Date dateUpdated; 020 private URI uri; 021 private SubresourceUris subresourceUris; 022 023 /** 024 * Get the date this resource was created. 025 */ 026 public Date getDateCreated() { 027 return this.dateCreated; 028 } 029 public void setDateCreated(Date dateCreated) { 030 this.dateCreated = dateCreated; 031 } 032 033 /** 034 * Get the date this resource was last updated. 035 */ 036 public Date getDateUpdated() { 037 return this.dateUpdated; 038 } 039 public void setDateUpdated(Date dateUpdated) { 040 this.dateUpdated = dateUpdated; 041 } 042 043 /** 044 * Get the URI for this resource, relative to {@code https://api.twilio.com/}. 045 */ 046 public URI getURI() { 047 return this.uri; 048 } 049 public void setURI(URI uri) { 050 this.uri = uri; 051 } 052 053 public SubresourceUris getSubresourceUris() { 054 return this.subresourceUris; 055 } 056 public void setSubresourceUris(SubresourceUris subresourceUris) { 057 this.subresourceUris = subresourceUris; 058 } 059} 060