当前位置: 首页>>代码示例>>Java>>正文


Java Optional类代码示例

本文整理汇总了Java中gate.creole.metadata.Optional的典型用法代码示例。如果您正苦于以下问题:Java Optional类的具体用法?Java Optional怎么用?Java Optional使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Optional类属于gate.creole.metadata包,在下文中一共展示了Optional类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setReferenceDate

import gate.creole.metadata.Optional; //导入依赖的package包/类
@RunTime
@Optional
@CreoleParameter(comment = "Reference date of the document. Permissible date values are 'yyyy-MM-dd', " +
        "annotation (document annotation holding the date)" +
        "'today' (today's date), 'creationDate' (date file was created), " +
        "'lastAccessDate' (date file was last accessed) and 'lastModifiedDate' (date file was last modified).",
        defaultValue = "today")
public void setReferenceDate(String date) {
    referenceDate = date;
}
 
开发者ID:pkourdis,项目名称:gateplugin-SUTime,代码行数:11,代码来源:TemporalTagger.java

示例2: setMimeType

import gate.creole.metadata.Optional; //导入依赖的package包/类
/** Set the specific MIME type for this document */
@Optional
@CreoleParameter(
    comment = "MIME type of the document.  If unspecified it will be "
          + "inferred from the file extension, etc.")
public void setMimeType(String newMimeType) {
  this.mimeType = newMimeType;
}
 
开发者ID:GateNLP,项目名称:gate-core,代码行数:9,代码来源:DocumentImpl.java

示例3: setSourceUrlStartOffset

import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
 * Documents may be packed within files; in this case an optional pair of
 * offsets refer to the location of the document. This method sets the start
 * offset.
 */
@Override
@Optional
@CreoleParameter(
    comment = "Start offset for documents based on ranges")
public void setSourceUrlStartOffset(Long sourceUrlStartOffset) {
  this.sourceUrlStartOffset = sourceUrlStartOffset;
}
 
开发者ID:GateNLP,项目名称:gate-core,代码行数:13,代码来源:DocumentImpl.java

示例4: setSourceUrlEndOffset

import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
 * Documents may be packed within files; in this case an optional pair of
 * offsets refer to the location of the document. This method sets the end
 * offset.
 */
@Override
@Optional
@CreoleParameter(
    comment = "End offset for documents based on ranges")
public void setSourceUrlEndOffset(Long sourceUrlEndOffset) {
  this.sourceUrlEndOffset = sourceUrlEndOffset;
}
 
开发者ID:GateNLP,项目名称:gate-core,代码行数:13,代码来源:DocumentImpl.java

示例5: setDocument

import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
 * @param document the document to set
 */
@Override
@Optional
@RunTime
@CreoleParameter
public void setDocument(Document document) {
  this.document = document;
}
 
开发者ID:GateNLP,项目名称:gate-core,代码行数:11,代码来源:ConditionalSerialAnalyserController.java

示例6: setSuppressExceptions

import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
 * If true, suppresses all exceptions. If false, passes all exceptions, including
 * exceptions indicating a timeout, on to the caller.
 */
@Optional
@CreoleParameter(defaultValue = "true",           
  comment = "Should all exceptions be suppressed and just a message be written to standard logger.info?")
public void setSuppressExceptions(Boolean yesno) {
  suppressExceptions = yesno;
}
 
开发者ID:GateNLP,项目名称:gate-core,代码行数:11,代码来源:RealtimeCorpusController.java

示例7: setOperators

import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
 * Sets the list of class names for any custom boolean operators.
 * Classes must implement {@link gate.jape.constraint.ConstraintPredicate}.
 */
@Optional
@CreoleParameter(
  comment = "Class names that implement gate.jape.constraint.ConstraintPredicate."
)
public void setOperators(List<String> operators) {
  this.operators = operators;
}
 
开发者ID:victorward,项目名称:recruitervision,代码行数:12,代码来源:Transducer.java

示例8: setAnnotationAccessors

import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
 * Sets the list of class names for any custom
 * {@link gate.jape.constraint.AnnotationAccessor}s.
 */
@Optional
@CreoleParameter(
  comment = "Class names that implement gate.jape.constraint.AnnotationAccessor."
)
public void setAnnotationAccessors(List<String> annotationAccessors) {
  this.annotationAccessors = annotationAccessors;
}
 
开发者ID:victorward,项目名称:recruitervision,代码行数:12,代码来源:Transducer.java

示例9: setInputASName

import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
 * @param inputASName the inputASName to set
 */
@CreoleParameter(comment="The name of the input annotation set.")
@Optional
@RunTime
public void setInputASName(String inputASName) {
  this.inputASName = inputASName;
}
 
开发者ID:victorward,项目名称:recruitervision,代码行数:10,代码来源:Transducer.java

示例10: setOutputASName

import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
 * @param outputASName the outputASName to set
 */
@CreoleParameter(comment="The name of the output annotation set.")
@Optional
@RunTime
public void setOutputASName(String outputASName) {
  this.outputASName = outputASName;
}
 
开发者ID:victorward,项目名称:recruitervision,代码行数:10,代码来源:Transducer.java

示例11: setStringFeature

import gate.creole.metadata.Optional; //导入依赖的package包/类
@RunTime
@Optional
@CreoleParameter(defaultValue = "", 
        comment = "Where to take the word string from, empty means underlying document string"
)
public void setStringFeature(String val) {
  stringFeature = val;
}
 
开发者ID:GateNLP,项目名称:gateplugin-LearningFramework,代码行数:9,代码来源:LF_GenFeatures_Misc.java

示例12: setInstanceWeightFeature

import gate.creole.metadata.Optional; //导入依赖的package包/类
@RunTime
@Optional
@CreoleParameter(comment = "The feature that constains the instance weight. If empty, no instance weights are used",
        defaultValue="")
public void setInstanceWeightFeature(String val) {
  instanceWeightFeature = val;
}
 
开发者ID:GateNLP,项目名称:gateplugin-LearningFramework,代码行数:8,代码来源:LF_Export.java

示例13: setSeqEncoder

import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
 * The sequence to classification algorithm to use.
 */
@RunTime
@Optional
@CreoleParameter(comment = "The sequence to classification algorithm to use." )
public void setSeqEncoder(SeqEncoderEnum val) {
  seqEncoderEnum = val;
}
 
开发者ID:GateNLP,项目名称:gateplugin-LearningFramework,代码行数:10,代码来源:LF_Export.java

示例14: setSequenceSpan

import gate.creole.metadata.Optional; //导入依赖的package包/类
@RunTime
@Optional
@CreoleParameter(comment = "For sequence learners, an annotation type "
        + "defining a meaningful sequence span. Ignored by non-sequence "
        + "learners.")
public void setSequenceSpan(String seq) {
  this.sequenceSpan = seq;
}
 
开发者ID:GateNLP,项目名称:gateplugin-LearningFramework,代码行数:9,代码来源:LF_TrainClassification.java

示例15: setSequenceSpan

import gate.creole.metadata.Optional; //导入依赖的package包/类
@RunTime
@Optional
@CreoleParameter(comment = "For sequence learners, an annotation type "
        + "defining a meaningful sequence span. Ignored by non-sequence "
        + "learners. Needs to be in the input AS.")
public void setSequenceSpan(String seq) {
  sequenceSpan = seq;
}
 
开发者ID:GateNLP,项目名称:gateplugin-LearningFramework,代码行数:9,代码来源:LF_ApplyChunking.java


注:本文中的gate.creole.metadata.Optional类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。