projects
/
demoscenemusic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add login page.
[demoscenemusic.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
demoscenemusic
/
data
/
DefaultStyle.java
diff --git
a/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultStyle.java
b/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultStyle.java
index
4a0ceec
..
1b6ae3c
100644
(file)
--- a/
src/main/java/net/pterodactylus/demoscenemusic/data/DefaultStyle.java
+++ b/
src/main/java/net/pterodactylus/demoscenemusic/data/DefaultStyle.java
@@
-18,22
+18,40
@@
package net.pterodactylus.demoscenemusic.data;
/**
package net.pterodactylus.demoscenemusic.data;
/**
- *
TODO
+ *
Default implementation of a style data container.
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class DefaultStyle extends DefaultBase implements Style {
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class DefaultStyle extends DefaultBase implements Style {
+ /**
+ * Creates a new style data container.
+ *
+ * @param id
+ * The ID of the style
+ */
public DefaultStyle(String id) {
super(id);
}
public DefaultStyle(String id) {
super(id);
}
- public String name() {
- return value("name", String.class).get();
+ //
+ // STYLE METHODS
+ //
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String getName() {
+ return getValue("name", String.class).get();
}
}
- public Style name(String name) {
- value("name", String.class).set(name);
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Style setName(String name) {
+ getValue("name", String.class).set(name);
return this;
}
return this;
}