| Modifier and Type | Field and Description |
|---|---|
| private final SimpleListProperty | |
| private final ReadOnlyBooleanProperty | |
| private final String | |
| private final Optional |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AbbreviationsFileViewModel(List<AbbreviationViewModel> abbreviations, String name)
This constructor should only be called to create a pseudo abbreviation file for built in lists. |
| Modifier and Type | Method and Description |
|---|---|
| public SimpleListProperty | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public boolean | |
| public Optional | |
| public int | |
| public ReadOnlyBooleanProperty | |
| public void | |
| public String | |
| public void | writeOrCreate()
This method will write all abbreviations of this abbreviation file to the file on the file system. |
| abbreviations | back to summary |
|---|---|
| private final SimpleListProperty<AbbreviationViewModel> abbreviations | |
| isBuiltInList | back to summary |
|---|---|
| private final ReadOnlyBooleanProperty isBuiltInList | |
| name | back to summary |
|---|---|
| private final String name | |
| path | back to summary |
|---|---|
| private final Optional<Path> path | |
| AbbreviationsFileViewModel | back to summary |
|---|---|
| public AbbreviationsFileViewModel(Path filePath) | |
| AbbreviationsFileViewModel | back to summary |
|---|---|
| public AbbreviationsFileViewModel(List<AbbreviationViewModel> abbreviations, String name) This constructor should only be called to create a pseudo abbreviation file for built in lists. This means it is a placeholder and its path will be null meaning it has no place on the filesystem. Its isPseudoFile property will therefore be set to true. | |
| abbreviationsProperty | back to summary |
|---|---|
| public SimpleListProperty | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) 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. | |
| exists | back to summary |
|---|---|
| public boolean exists() | |
| getAbsolutePath | back to summary |
|---|---|
| public Optional | |
| 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
| |
| isBuiltInListProperty | back to summary |
|---|---|
| public ReadOnlyBooleanProperty isBuiltInListProperty() | |
| readAbbreviations | back to summary |
|---|---|
| public void readAbbreviations() throws IOException | |
| 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- | |
| writeOrCreate | back to summary |
|---|---|
| public void writeOrCreate() throws IOException This method will write all abbreviations of this abbreviation file to the file on the file system.
It essentially will check if the current file is a builtin list and if not it will call
| |