Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class SongType {
- public Song song;
- public class Song {
- public FileInfo fileInfo;
- public Properties properties;
- public Lyrics lyrics;
- public FileInfo getFileInfo() {return fileInfo;}
- public Properties getProperties() {return properties;}
- public Lyrics getLyrics() {return lyrics;}
- public void setFileInfo(FileInfo fileInfo) {this.fileInfo = fileInfo;}
- public void setProperties(Properties properties) {this.properties = properties;}
- public void setLyrics(Lyrics lyrics) {this.lyrics = lyrics;}
- }
- public static class FileInfo {
- private String version;
- private String createdIn;
- private String modifiedIn;
- private String modified;
- public String getVersion() {return version;}
- public String getCreatedIn() {return createdIn;}
- public String getModifiedIn() {return modifiedIn;}
- public String getModified() {return modified;}
- public void setVersion(String version) {this.version = version;}
- public void setCreatedIn(String createdIn) {this.createdIn = createdIn;}
- public void setModifiedIn(String modifiedIn) {this.modifiedIn = modifiedIn;}
- public void setModified(String modified) {this.modified = modified;}
- }
- public static class Properties {
- private String copywright;
- private String released;
- private String transposition;
- private String key;
- private String version;
- private String publisher;
- private String verseOrder;
- private Tempo tempo;
- private List<String> keywords;
- private List<Author> authors;
- private List<Title> titles;
- private List<Theme> themes;
- public String getCopywright() {return copywright;}
- public String getReleased() {return released;}
- public String getTransposition() {return transposition;}
- public String getKey() {return key;}
- public String getVersion() {return version;}
- public String getPublisher() {return publisher;}
- public String getVerseOrder() {return verseOrder;}
- public Tempo getTempo() {return tempo;}
- public List<String> getKeywords(){return keywords;}
- public List<Author> getAuthors() {return authors;}
- public List<Title> getTitles() {return titles;}
- public List<Theme> getThemes() {return themes;}
- public void setCopywright(String copywright) {this.copywright = copywright;}
- public void setReleased(String released) {this.released = released;}
- public void setTransposition(String transposition) {this.transposition = transposition;}
- public void setKey(String key) {this.key = key;}
- public void setVersion(String version) {this.version = version;}
- public void setPublisher(String publisher) {this.publisher = publisher;}
- public void setVerseOrder(String verseOrder) {this.verseOrder = verseOrder;}
- public void setTempo(Tempo tempo) {this.tempo = tempo;}
- public void setKeywords(List<String> keywords) {this.keywords = keywords;}
- public void setAuthors(List<Author> authors) {this.authors = authors;}
- public void setTitles(List<Title> titles) {this.titles = titles;}
- public void setThemes(List<Theme> themes) {this.themes = themes;}
- }
- public static class Lyrics {
- private String section;
- private List<Line> lines;
- public String getSection() {return section;}
- public List<Line> getLines() {return lines;}
- public void setSection(String section) {this.section = section;}
- public void setLines(List<Line> lines) {this.lines = lines;}
- }
- public static class Line {
- private String lang;
- private String part;
- private String text;
- private String comment;
- public String getLang() {return lang;}
- public String getPart() {return part;}
- public String getText() {return text;}
- public String getComment() {return comment;}
- public void setLang(String lang) {this.lang = lang;}
- public void setPart(String part) {this.part = part;}
- public void setText(String text) {this.text = text;}
- public void setComment(String comment) {this.comment = comment;}
- }
- public static class Author {
- private String name;
- private String type;
- private String lang;
- public String getName() {return name;}
- public String getType() {return type;}
- public String getLang() {return lang;}
- public void setName(String name) {this.name = name;}
- public void setType(String type) {this.type = type;}
- public void setLang(String lang) {this.lang = lang;}
- }
- public static class Title {
- private String title;
- private String lang;
- private Boolean original;
- public String getTitle() {return title;}
- public String getLang() {return lang;}
- public Boolean getOriginal() {return original;}
- public void setTitle(String title) {this.title = title;}
- public void setLang(String lang) {this.lang = lang;}
- public void setOriginal(Boolean original) {this.original = original;}
- }
- public static class Tempo {
- private String type;
- private String value;
- public String getType() {return type;}
- public String getValue() {return value;}
- public void setType(String type) {this.type = type;}
- public void setValue(String value) {this.value = value;}
- }
- public static class Theme {
- private String theme;
- private String lang;
- public String getTheme() {return theme;}
- public String getLang() {return lang;}
- public void setTheme(String theme) {this.theme = theme;}
- public void setLang(String lang) {this.lang = lang;}
- }
- }
- /*
- {
- \"song\": {
- \"fileInfo\": {
- \"version\": \"0.1\",
- \"createdIn\": \"PickWorks Studio\",
- \"modifiedIn\": \"PickWorks Studio\",
- \"modified\": \"2010-01-28T13:15:30+01:00\"
- },
- \"properties\": {
- \"authors\": [
- {
- \"name\": \"Johny Deerp\"
- },
- {
- \"name\": \"Juri Traktori\",
- \"type\": \"music\",
- \"lang\": \"en\"
- }
- ],
- \"titles\": [
- {
- \"title\": \"Rainy day\",
- \"lang\": \"en\",
- \"original\": true
- },
- {
- \"title\": \"Descowe dni\",
- \"lang\": \"pl\"
- }
- ],
- \"copywright\": \"Michal Tomanek\",
- \"released\": \"19-03-1993\",
- \"transposition\": -3,
- \"tempo\": {
- \"type\": \"text/bpm\",
- \"value\": \"moderate/90\"
- },
- \"key\": \"A\",
- \"version\": 0.99,
- \"publisher\": \"myself\",
- \"keywords\": [
- \"grace\",
- \"words\",
- \"amazing\"
- ],
- \"verseOrder\": \"v1 v2 v1 v1 v2\",
- \"themes\": [
- {
- \"theme\": \"adoration\"
- },
- {
- \"theme\": \"Salvation\",
- \"lang\": \"en-GB\"
- }
- ]
- },
- \"lyrics\": [
- {
- \"section\": \"v1\",
- \"lines\": [
- {
- \"lang\": \"en\",
- \"part\": \"man\",
- \"text\": \"How <chord name=\\\"A\\\"/>great is <br/>your love\",
- \"comment\": \"Sing softly\"
- },
- {
- \"part\": \"woman\",
- \"text\": \"How great is your love to us\"
- }
- ]
- },
- {
- \"section\": \"v2\",
- \"lines\": [
- {
- \"part\": \"man\",
- \"text\": \"How great is your love\",
- \"comment\": \"Sing softly\",
- \"lang\": \"cz\"
- },
- {
- \"part\": \"woman\",
- \"text\": \"How great is your love to us\"
- }
- ]
- }
- ]
- }
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement