public class Information extends Object implements Comparable<Information>
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected String |
description
is supposed to be the overview of this information
|
protected List<File> |
fileList
is a collection of files attached to this information, including picture
files.
|
protected String |
id
is a field to identify this information object. it is usually same with
name |
protected Location |
location
is supposed to be a location strongly related to this information
|
protected String |
name
is a name to identify this information object. it is usually same with
id |
protected Picture |
picture
非推奨です。
replaced by
fileList |
| コンストラクタと説明 |
|---|
Information(String _name)
constructs this object with its name
|
Information(String _name,
Location _location)
constructs this object with its name and location
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
compareTo(Information o)
compare with this
id |
Location |
getLocation()
returns the location object owned by this Information object.
|
String |
getName()
returns the name of this object.
|
Picture |
getPicture()
provide a picture object owned by this
Information object. |
void |
setPicture(Picture _picture)
adds an object of Picture class.
|
String |
toString()
returns the name of this object.
|
protected String name
idprotected String description
protected Location location
protected List<File> fileList
public Information(String _name, Location _location)
_name - not null_location - public Information(String _name)
_name - not nullpublic int compareTo(Information o)
idcompareTo インタフェース内 Comparable<Information>public String getName()
nullpublic Location getLocation()
null if this Information object
does not have location.public Picture getPicture()
Information object. If this
Information object does not have any Picture object, this
method will return null. If this Information object has more than two
Picture objects, this method returns the first added Picture object.null if this Information object does
not have a Picture objectpublic void setPicture(Picture _picture)
_picture - not nullCopyright © 2018. All rights reserved.