|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qsos.utils.LibQSOS
public class LibQSOS
This class implements the methodes to be used in a QSOS Editor in Java. It uses a search class so if the xml format is modified, a very few modifications would have to be done. It implements the interface ILibQSOS.
Constructor Summary | |
---|---|
LibQSOS()
Constructor for the class LibQSOS. |
|
LibQSOS(ISheet sheet)
Constructor for the class LibQSOS which sets the sheet. |
Method Summary | |
---|---|
void |
addAuthor(java.lang.String nameString,
java.lang.String emailString)
Allows to add an author to the list of authors. |
java.lang.String |
Debugaffichage(java.util.List<SimpleMenuEntry> list)
Fonction de debuggage |
void |
delAuthor(java.lang.String name)
Allows to delete an author. |
java.lang.String |
getAppname()
Allows to get the application name. |
java.lang.String |
getAuthors()
Allows to get the name of all the authors. |
java.lang.String |
getCommentByName(java.lang.String name)
Allows to get the comment on an element. |
java.lang.String |
getDemoUrl()
Allows to get the demonstration url. |
java.lang.String |
getDesc()
Allows to get the description. |
java.lang.String |
getDescByName(java.lang.String name,
int numDesc)
Allows to get the description number numDesc of the element called name. |
java.lang.String |
getLanguage()
Allows to get the language. |
java.lang.String |
getLicenseDesc()
Allows to get the license Description. |
java.lang.String |
getLicenseId()
Allows to get the license Id. |
java.lang.String |
getLicenselist()
Not implemented yet |
java.lang.String |
getQsosappfamily()
Allows to get the application family in QSOS. |
java.lang.String |
getQsosformat()
Allows to get the QSOS format. |
java.lang.String |
getQsosspecificformat()
Allows to get the QSOS specific format. |
java.lang.String |
getRelease()
Allows to get the release number. |
java.lang.String |
getScoreByName(java.lang.String name)
Allows to get the score of an element. |
ISheet |
getSheet()
|
java.util.List<SimpleMenuEntry> |
getSimpleTree()
|
java.lang.String |
getUrl()
Allows to get the url. |
void |
load(java.net.URL url)
Allows to load the java model corresponding to the xml document found at the url. |
void |
setAppname(java.lang.String appname)
Allows to set the application name. |
void |
setCommentByName(java.lang.String name,
java.lang.String comment)
Allows to set a comment to an element given by his name. |
void |
setDemoUrl(java.lang.String demourl)
Allows to set the demonstration url. |
void |
setDesc(java.lang.String desc)
Allows to set the description. |
void |
setLanguage(java.lang.String language)
Allows to set the language. |
void |
setLicenseDesc(java.lang.String licensedesc)
Allows to set the license Description. |
void |
setLicenseId(java.lang.String licenseId)
Allows to set the license Id. |
void |
setQsosappfamily(java.lang.String qsosappfamily)
Allows to set the application family in QSOS. |
void |
setQsosformat(java.lang.String qsosformat)
Allows to set the QSOS format. |
void |
setQsosspecificformat(java.lang.String qsosspecificformat)
Allows to set the QSOS specific format. |
void |
setRelease(java.lang.String release)
Allows to set the release. |
void |
setScoreByName(java.lang.String name,
java.lang.String score)
Allows to set the score of an element |
void |
setSheet(ISheet sheet)
|
void |
setUrl(java.lang.String url)
Allows to set the url. |
void |
write(java.lang.String path)
Allows to write the xml file at the given path. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LibQSOS()
public LibQSOS(ISheet sheet)
Method Detail |
---|
public void load(java.net.URL url)
load
in interface ILibQSOS
url
- the URL where the xml document is get.public ISheet getSheet()
getSheet
in interface ILibQSOS
public void setSheet(ISheet sheet)
setSheet
in interface ILibQSOS
public java.util.List<SimpleMenuEntry> getSimpleTree()
getSimpleTree
in interface ILibQSOS
public java.lang.String Debugaffichage(java.util.List<SimpleMenuEntry> list)
Debugaffichage
in interface ILibQSOS
public java.lang.String getDescByName(java.lang.String name, int numDesc)
getDescByName
in interface ILibQSOS
name
- the name to search.numDesc
- int representing the number of the description to search.
public void setCommentByName(java.lang.String name, java.lang.String comment)
setCommentByName
in interface ILibQSOS
name
- the name of the element.comment
- the comment to set.public java.lang.String getCommentByName(java.lang.String name)
getCommentByName
in interface ILibQSOS
name
- the name of the element to get.
public java.lang.String getScoreByName(java.lang.String name)
getScoreByName
in interface ILibQSOS
name
- the name of the element.
public void setScoreByName(java.lang.String name, java.lang.String score)
setScoreByName
in interface ILibQSOS
name
- the name of the element.score
- a String representing the score to set.public java.lang.String getAuthors()
getAuthors
in interface ILibQSOS
public void addAuthor(java.lang.String nameString, java.lang.String emailString)
addAuthor
in interface ILibQSOS
nameString
- the name of the author to add.emailString
- the email of the author to add.public void delAuthor(java.lang.String name)
delAuthor
in interface ILibQSOS
name
- the name of the author to delete.public java.lang.String getAppname()
getAppname
in interface ILibQSOS
public void setAppname(java.lang.String appname)
setAppname
in interface ILibQSOS
appname
- the application name to set.public java.lang.String getLanguage()
getLanguage
in interface ILibQSOS
public void setLanguage(java.lang.String language)
setLanguage
in interface ILibQSOS
language
- the language to set.public java.lang.String getRelease()
getRelease
in interface ILibQSOS
public void setRelease(java.lang.String release)
setRelease
in interface ILibQSOS
release
- the release to set.public java.lang.String getLicenselist()
getLicenselist
in interface ILibQSOS
public java.lang.String getLicenseId()
getLicenseId
in interface ILibQSOS
public void setLicenseId(java.lang.String licenseId)
setLicenseId
in interface ILibQSOS
licenseId
- the license Id to set.public java.lang.String getLicenseDesc()
getLicenseDesc
in interface ILibQSOS
public void setLicenseDesc(java.lang.String licensedesc)
setLicenseDesc
in interface ILibQSOS
licensedesc
- the license Description to set.public java.lang.String getUrl()
getUrl
in interface ILibQSOS
public void setUrl(java.lang.String url)
setUrl
in interface ILibQSOS
url
- the url to set.public java.lang.String getDesc()
getDesc
in interface ILibQSOS
public void setDesc(java.lang.String desc)
setDesc
in interface ILibQSOS
desc
- the description to set.public java.lang.String getDemoUrl()
getDemoUrl
in interface ILibQSOS
public void setDemoUrl(java.lang.String demourl)
setDemoUrl
in interface ILibQSOS
demourl
- the demonstration url to set.public java.lang.String getQsosformat()
getQsosformat
in interface ILibQSOS
public void setQsosformat(java.lang.String qsosformat)
setQsosformat
in interface ILibQSOS
qsosformat
- the QSOS format to set.public java.lang.String getQsosspecificformat()
getQsosspecificformat
in interface ILibQSOS
public void setQsosspecificformat(java.lang.String qsosspecificformat)
setQsosspecificformat
in interface ILibQSOS
qsosspecificformat
- the QSOS specific format to set.public java.lang.String getQsosappfamily()
getQsosappfamily
in interface ILibQSOS
public void setQsosappfamily(java.lang.String qsosappfamily)
setQsosappfamily
in interface ILibQSOS
qsosappfamily
- the application family in QSOS to set.public void write(java.lang.String path)
write
in interface ILibQSOS
path
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |