Package ch.zhaw.tasklist.source
Class Source
- java.lang.Object
-
- ch.zhaw.tasklist.source.Source
-
- Direct Known Subclasses:
AppointmentSource
,NoteSource
,ProjectSource
,QuicklinkSource
,WorkspaceSource
public abstract class Source extends java.lang.Object
Source file representation, is in most cases a .yml file.
-
-
Constructor Summary
Constructors Constructor Description Source()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Check objectjava.lang.String
getName()
Get namejava.nio.file.Path
getPath()
Get pathint
hashCode()
Return hashcodevoid
setName(java.lang.String name)
Set namevoid
setPath(java.nio.file.Path path)
Set path
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get name- Returns:
-
setName
public void setName(java.lang.String name)
Set name- Parameters:
name
-
-
getPath
public java.nio.file.Path getPath()
Get path- Returns:
-
setPath
public void setPath(java.nio.file.Path path)
Set path- Parameters:
path
-
-
hashCode
public int hashCode()
Return hashcode- Overrides:
hashCode
in classjava.lang.Object
- Returns:
-
equals
public boolean equals(java.lang.Object obj)
Check object- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
-- Returns:
-
-