| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
package org.homeunix.thecave.buddi.plugin.api.model.impl; |
| 5 | |
|
| 6 | |
import org.homeunix.thecave.buddi.model.Source; |
| 7 | |
import org.homeunix.thecave.buddi.plugin.api.model.ImmutableSource; |
| 8 | |
|
| 9 | |
public abstract class ImmutableSourceImpl extends ImmutableModelObjectImpl implements ImmutableSource { |
| 10 | |
|
| 11 | |
public ImmutableSourceImpl(Source source) { |
| 12 | 0 | super(source); |
| 13 | 0 | } |
| 14 | |
public Source getSource(){ |
| 15 | 0 | return (Source) getRaw(); |
| 16 | |
} |
| 17 | |
public boolean isDeleted() { |
| 18 | 0 | return getSource().isDeleted(); |
| 19 | |
} |
| 20 | |
public String getName() { |
| 21 | 0 | return getSource().getName(); |
| 22 | |
} |
| 23 | |
public String getFullName() { |
| 24 | 0 | return getSource().getFullName(); |
| 25 | |
} |
| 26 | |
public String getNotes() { |
| 27 | 0 | return getSource().getNotes(); |
| 28 | |
} |
| 29 | |
|
| 30 | |
@Override |
| 31 | |
public String toString() { |
| 32 | 0 | return getFullName(); |
| 33 | |
} |
| 34 | |
} |