程序包 weka.core
类 TechnicalInformation
java.lang.Object
weka.core.TechnicalInformation
- 所有已实现的接口:
RevisionHandler
Used for paper references in the Javadoc and for BibTex generation.
Based on documentation found here:
http://www.ecst.csuchico.edu/~jacobsd/bib/formats/bibtex.html
BibTex examples can be found here:
http://bib2web.djvuzone.org/bibtex.html
- 版本:
- $Revision: 1.11 $
- 作者:
- fracpete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static enum
the possible fieldsstatic enum
the different types of information -
构造器概要
构造器构造器说明Initializes the information with the given typeInitializes the information with the given type -
方法概要
修饰符和类型方法说明void
add
(TechnicalInformation value) adds the given information to the list of additional technical informationsadd
(TechnicalInformation.Type type) Adds an empty technical information with the given type to the list of additional informations and returns the instance.returns an enumeration of all the additional technical informations (if there are any)boolean
exists
(TechnicalInformation.Field field) returns TRUE if the field is stored and has a value different from the empty string.fields()
returns an enumeration over all the stored fieldsgetID()
returns the unique ID (either the one used in creating this instance or the automatically generated one)Returns the revision string.getType()
returns the type of this technical informationreturns the value associated with the given field, or empty if field is not currently stored.boolean
returns true if there are further technical informations stored in thisstatic void
Prints some examples of technical informations if there are no commandline options given.void
setValue
(TechnicalInformation.Field field, String value) sets the value for the given field, overwrites any previously existing one.toBibTex()
Returns a BibTex string representing this technical information.toString()
Returns a plain-text string representing this technical information.
-
构造器详细资料
-
TechnicalInformation
Initializes the information with the given type- 参数:
type
- the type of this information- 另请参阅:
-
TechnicalInformation
Initializes the information with the given type- 参数:
type
- the type of this informationid
- the unique ID (for BibTex), can be empty- 另请参阅:
-
-
方法详细资料
-
getType
returns the type of this technical information- 返回:
- the type of this information
-
getID
returns the unique ID (either the one used in creating this instance or the automatically generated one)- 返回:
- the ID for this information
-
setValue
sets the value for the given field, overwrites any previously existing one.- 参数:
field
- the field to set the value forvalue
- the value of the field
-
getValue
returns the value associated with the given field, or empty if field is not currently stored.- 参数:
field
- the field to retrieve the value for- 返回:
- the value associated with this field, empty if not existing
-
exists
returns TRUE if the field is stored and has a value different from the empty string.- 参数:
field
- the field to check- 返回:
- true if a value is stored for the field and non-empty
-
fields
returns an enumeration over all the stored fields- 返回:
- all currently stored fields
-
hasAdditional
public boolean hasAdditional()returns true if there are further technical informations stored in this- 返回:
- true if there are further technical informations available
-
additional
returns an enumeration of all the additional technical informations (if there are any)- 返回:
- an enumeration over all additional technical informations
-
add
adds the given information to the list of additional technical informations- 参数:
value
- the information to add
-
add
Adds an empty technical information with the given type to the list of additional informations and returns the instance.- 参数:
type
- the type of the new information to add- 返回:
- the generated information
-
toString
Returns a plain-text string representing this technical information. Note: it only returns a string based on some fields. At least AUTHOR, YEAR and TITLE are necessary. -
toBibTex
Returns a BibTex string representing this technical information. Note: this is just a very raw implementation, special characters need to be escaped manually for LaTeX.- 返回:
- the BibTeX representation of this information
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-
main
Prints some examples of technical informations if there are no commandline options given. Otherwise the information of a given TechnicalInformationHandler can be printed. Valid options are: -W classname
The classname of the TechnicalInformationHandler to print the information for -bibtex
Print the information in BibTeX format -plaintext
Print the information in plain text format- 参数:
args
- the commandline options- 抛出:
Exception
- if the option parsing fails
-