Serializable which is needed for drag and drop in gui
The conversion from String (org.jabref.model.entry.field.StandardField.FILE ) is done at org.jabref.logic.importer.util.FileFieldParser#parse(String)
| Modifier and Type | Field and Description |
|---|---|
| private transient StringProperty | |
| private transient StringProperty | |
| private transient StringProperty | |
| private static final LinkedFile | |
| private static final String | |
| private transient StringProperty | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public | LinkedFile(String
The description of the linked file description, String The path or URL to the linked file link, FileType The file type of the linked file. See fileType)org. for common file types.
|
| public | LinkedFile(String description, Path link, String fileType)
Better use |
| public | |
| public | LinkedFile(String description, String link, String fileType, String sourceUrl)
Constructor can also be used for non-valid paths. |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public StringProperty | |
| public boolean | equals(@Nullable Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public StringProperty | |
| public Optional | |
| public Optional | |
| public String | |
| public Optional | Returns: extracted file nameExtracts the file name, including basename and extension, from the link. |
| public String | |
| public String | |
| public Observable[] | |
| public String | |
| public int | |
| public boolean | |
| public static boolean | Returns: true, if it starts with "http://", "https://", "ftp://", "ftps://" or contains "www."; false otherwiseThe String to check toCheck)Checks if the given String is an online link Recognizes http://, https://, ftp://, ftps://, and www. |
| public boolean | |
| public StringProperty | |
| private void | readObject(ObjectInputStream in)
Reads serialized object from |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public StringProperty | |
| public String | |
| private void | writeObject(ObjectOutputStream out)
Writes serialized object to ObjectOutputStream, automatically called |
| description | back to summary |
|---|---|
| private transient StringProperty description | |
| fileType | back to summary |
|---|---|
| private transient StringProperty fileType | |
| link | back to summary |
|---|---|
| private transient StringProperty link | |
| NULL_OBJECT | back to summary |
|---|---|
| private static final LinkedFile NULL_OBJECT | |
| REGEX_URL | back to summary |
|---|---|
| private static final String REGEX_URL | |
| sourceURL | back to summary |
|---|---|
| private transient StringProperty sourceURL | |
| URL_PATTERN | back to summary |
|---|---|
| private static final Pattern URL_PATTERN | |
| LinkedFile | back to summary |
|---|---|
public LinkedFile(String description, String link, FileType fileType)
| |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(String description, Path link, String fileType) Better use | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(String description, Path link, String fileType, String sourceUrl) | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(String description, String link, String fileType, String sourceUrl) Constructor can also be used for non-valid paths. We need to parse them, because the GUI needs to render it. | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(String description, String link, String fileType) | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(URL link, String fileType) | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(String description, URL link, String fileType) | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(String description, URL link, String fileType, String sourceUrl) | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(Path link) Constructs a new LinkedFile with an empty file type and an empty description | |
| descriptionProperty | back to summary |
|---|---|
| public StringProperty descriptionProperty() | |
| equals | back to summary |
|---|---|
| public boolean equals(@Nullable Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| fileTypeProperty | back to summary |
|---|---|
| public StringProperty fileTypeProperty() | |
| findIn | back to summary |
|---|---|
| public Optional | |
| findIn | back to summary |
|---|---|
| public Optional Tries to locate the file. In case the path is absolute, the path is checked. In case the path is relative, the given directories are used as base directories. | |
| getDescription | back to summary |
|---|---|
| public String getDescription() | |
| getFileName | back to summary |
|---|---|
| public Optional Extracts the file name, including basename and extension, from the link. | |
| getFileType | back to summary |
|---|---|
| public String getFileType() | |
| getLink | back to summary |
|---|---|
| public String getLink() | |
| getObservables | back to summary |
|---|---|
| public Observable[] getObservables() | |
| getSourceUrl | back to summary |
|---|---|
| public String getSourceUrl() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| isOnlineLink | back to summary |
|---|---|
| public static boolean isOnlineLink(String toCheck) Checks if the given String is an online link Recognizes http://, https://, ftp://, ftps://, and www. prefixes.
| |
| isOnlineLink | back to summary |
|---|---|
| public boolean isOnlineLink() | |
| linkProperty | back to summary |
|---|---|
| public StringProperty linkProperty() | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException Reads serialized object from
| |
| setDescription | back to summary |
|---|---|
| public void setDescription(String description) | |
| setFileType | back to summary |
|---|---|
| public void setFileType(String fileType) | |
| setFileType | back to summary |
|---|---|
| public void setFileType(FileType fileType) | |
| setLink | back to summary |
|---|---|
| public void setLink(String link) | |
| setSourceURL | back to summary |
|---|---|
| public void setSourceURL(String url) | |
| sourceUrlProperty | back to summary |
|---|---|
| public StringProperty sourceUrlProperty() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream out) throws IOException Writes serialized object to ObjectOutputStream, automatically called
| |