package mapping.interceptor;

public class Image {

	private Long id;
	private String name;
	private Details details;

	public Details getDetails() {
		return details;
	}

	public Long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setDetails(Details details) {
		this.details = details;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String toString() {
		return "Image/" + ( details == null ? "no details" : details.toString() ); //$NON-NLS-1$ //$NON-NLS-2$
	}

	public static class Details {
		private long perm1 = -1; // all bits turned on.
		private String comment;

		protected long getPerm1() {
			return this.perm1;
		}

		protected void setPerm1(long value) {
			this.perm1 = value;
		}

		public String getComment() {
			return comment;
		}

		public void setComment(String comment) {
			this.comment = comment;
		}

		public String toString() {
			return "Details=" + perm1; //$NON-NLS-1$
		}
	}

}

