1010import  org .jabref .logic .journals .Abbreviation ;
1111
1212/** 
13-  * This class provides a view model for abbreviation objects which can also 
14-  * define placeholder objects of abbreviations. This is indicated by using the 
15-  * {@code pseudoAbbreviation} property. 
13+  * This class provides a view model for abbreviation objects which can also define placeholder objects of abbreviations. 
14+  * This is indicated by using the {@code pseudoAbbreviation} property. 
1615 */ 
1716public  class  AbbreviationViewModel  {
1817
1918    private  final  Abbreviation  abbreviationObject ;
2019    private  final  StringProperty  name  = new  SimpleStringProperty ("" );
2120    private  final  StringProperty  abbreviation  = new  SimpleStringProperty ("" );
22-     private  final  StringProperty  shortestUnique  = new  SimpleStringProperty ("" );
21+     private  final  StringProperty  shortestUniqueAbbreviation  = new  SimpleStringProperty ("" );
2322    private  final  BooleanProperty  pseudoAbbreviation  = new  SimpleBooleanProperty ();
2423
2524    public  AbbreviationViewModel (Abbreviation  abbreviation ) {
2625        this .abbreviationObject  = abbreviation ;
27-         pseudoAbbreviation .set (this .abbreviationObject  == null );
26+         this . pseudoAbbreviation .set (this .abbreviationObject  == null );
2827        if  (this .abbreviationObject  != null ) {
2928            this .name .bindBidirectional (this .abbreviationObject .nameProperty ());
3029            this .abbreviation .bindBidirectional (this .abbreviationObject .abbreviationProperty ());
31-             this .shortestUnique .bindBidirectional (this .abbreviationObject .shortestUniqueProperty ());
30+             this .shortestUniqueAbbreviation .bindBidirectional (this .abbreviationObject .shortestUniqueAbbreviationProperty ());
3231        } else  {
3332            this .name .set ("Add new Abbreviation" );
3433        }
@@ -38,28 +37,28 @@ public Abbreviation getAbbreviationObject() {
3837        return  this .abbreviationObject ;
3938    }
4039
41-     public  void   setName ( String  name ) {
42-         this .name .set ( name );
40+     public  String  getName ( ) {
41+         return   this .name .get ( );
4342    }
4443
45-     public  void  setAbbreviation (String  abbreviation ) {
46-         this .abbreviation .set (abbreviation );
44+     public  void  setName (String  name ) {
45+         this .name .set (name );
4746    }
4847
49-     public  void   setShortestUnique ( String  shortestUnique ) {
50-         this .shortestUnique . set ( shortestUnique );
48+     public  String  getAbbreviation ( ) {
49+         return   this .abbreviation . get ( );
5150    }
5251
53-     public  String   getName ( ) {
54-         return   this .name . get ( );
52+     public  void   setAbbreviation ( String   abbreviation ) {
53+         this .abbreviation . set ( abbreviation );
5554    }
5655
57-     public  String  getAbbreviation () {
58-         return  this .abbreviation .get ();
56+     public  String  getShortestUniqueAbbreviation () {
57+         return  this .shortestUniqueAbbreviation .get ();
5958    }
6059
61-     public  String   getShortestUnique ( ) {
62-         return   this .shortestUnique . get ( );
60+     public  void   setShortestUniqueAbbreviation ( String   shortestUniqueAbbreviation ) {
61+         this .shortestUniqueAbbreviation . set ( shortestUniqueAbbreviation );
6362    }
6463
6564    public  boolean  isPseudoAbbreviation () {
@@ -74,8 +73,8 @@ public StringProperty abbreviationProperty() {
7473        return  this .abbreviation ;
7574    }
7675
77-     public  StringProperty  shortestUniqueProperty () {
78-         return  this .shortestUnique ;
76+     public  StringProperty  shortestUniqueAbbreviationProperty () {
77+         return  this .shortestUniqueAbbreviation ;
7978    }
8079
8180    public  BooleanProperty  isPseudoAbbreviationProperty () {
0 commit comments