本文整理了Java中org.osgi.service.metatype.annotations.Option
类的一些代码示例,展示了Option
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Option
类的具体详情如下:
包路径:org.osgi.service.metatype.annotations.Option
类名称:Option
暂无
代码示例来源:origin: Adobe-Consulting-Services/acs-aem-commons
@AttributeDefinition(name="CMYK ICC Profile",description="ICC Profile for CMYK to RGB Conversion", defaultValue=DEFAULT_CMYK_PROFILE,
options= {
@Option(label = "CoatedFOGRA27", value = "CoatedFOGRA27"),
@Option(label = "CoatedFOGRA39", value = "CoatedFOGRA39"),
@Option(label = "JapanColor2001Coated", value = "JapanColor2001Coated"),
@Option(label = "JapanColor2001Uncoated", value = "JapanColor2001Uncoated"),
@Option(label = "JapanColor2002Newspaper", value = "JapanColor2002Newspaper"),
@Option(label = "JapanWebCoated", value = "JapanWebCoated"),
@Option(label = "UncoatedFOGRA29", value = "UncoatedFOGRA29"),
@Option(label = "USSheetfedCoated", value = "USSheetfedCoated"),
@Option(label = "USSheetfedUncoated", value = "USSheetfedUncoated"),
@Option(label = "USWebCoatedSWOP", value = "USWebCoatedSWOP"),
@Option(label = "USWebUncoated", value = "USWebUncoated"),
@Option(label = "WebCoatedFOGRA28", value = "WebCoatedFOGRA28")
})
String cmyk_icc_profile() default DEFAULT_CMYK_PROFILE;
代码示例来源:origin: biz.aQute.bnd/bndlib
private void doAD(ADDef ad, Pair pair) throws Exception {
AttributeDefinition a = pair.getAd();
Annotation annotation = pair.getA();
if (a.name() != null) {
ad.name = a.name();
}
ad.description = a.description();
if (a.type() != null) {
ad.type = a.type().toString();
}
ad.cardinality = a.cardinality();
ad.max = a.max();
ad.min = a.min();
ad.defaults = a.defaultValue();
if (annotation.get("required") != null) {
ad.required = a.required();
}
if (annotation.get("options") != null) {
ad.options.clear();
for (Object o : (Object[])annotation.get("options")) {
Option opt = ((Annotation)o).getAnnotation();
ad.options.add(new OptionDef(opt.label(), opt.value()));
}
}
}
代码示例来源:origin: biz.aQute.bnd/bnd
private void doAD(ADDef ad, Pair pair) throws Exception {
AttributeDefinition a = pair.getAd();
Annotation annotation = pair.getA();
if (a.name() != null) {
ad.name = a.name();
}
ad.description = a.description();
if (a.type() != null) {
ad.type = a.type().toString();
}
ad.cardinality = a.cardinality();
ad.max = a.max();
ad.min = a.min();
ad.defaults = a.defaultValue();
if (annotation.get("required") != null) {
ad.required = a.required();
}
if (annotation.get("options") != null) {
ad.options.clear();
for (Object o : (Object[])annotation.get("options")) {
Option opt = ((Annotation)o).getAnnotation();
ad.options.add(new OptionDef(opt.label(), opt.value()));
}
}
}
代码示例来源:origin: Adobe-Consulting-Services/acs-aem-commons
description = "Day of week on which content expires.",
options = {
@Option(value = "" + Calendar.SUNDAY, label = "Sunday"),
@Option(value = "" + Calendar.MONDAY, label = "Monday"),
@Option(value = "" + Calendar.TUESDAY, label = "Tuesday"),
@Option(value = "" + Calendar.WEDNESDAY, label = "Wednesday"),
@Option(value = "" + Calendar.THURSDAY, label = "Thursday"),
@Option(value = "" + Calendar.FRIDAY, label = "Friday"),
@Option(value = "" + Calendar.SATURDAY, label = "Saturday"),
代码示例来源:origin: apache/jackrabbit-oak
@Option(label = TYPE_DEFAULT, value = TYPE_DEFAULT),
@Option(label = TYPE_METRIC, value = TYPE_METRIC),
@Option(label = TYPE_NONE, value = TYPE_NONE)
})
String providerType() default TYPE_AUTO;
代码示例来源:origin: org.apache.jackrabbit/oak-core
@Option(label = TYPE_DEFAULT, value = TYPE_DEFAULT),
@Option(label = TYPE_METRIC, value = TYPE_METRIC),
@Option(label = TYPE_NONE, value = TYPE_NONE)
})
String providerType() default TYPE_AUTO;
代码示例来源:origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak
@Option(label = TYPE_DEFAULT, value = TYPE_DEFAULT),
@Option(label = TYPE_METRIC, value = TYPE_METRIC),
@Option(label = TYPE_NONE, value = TYPE_NONE)
})
String providerType() default TYPE_AUTO;
代码示例来源:origin: Adobe-Consulting-Services/acs-aem-commons
@Option(value = "NONE", label = "None (disabled)"),
@Option(value = "TRACE", label = "Trace"),
@Option(value = "DEBUG", label = "Debug"),
@Option(value = "INFO", label = "Information"),
@Option(value = "WARN", label = "Warnings"),
@Option(value = "ERROR", label = "Error")})
String event_logger_level() default DEFAULT_LEVEL;
代码示例来源:origin: apache/jackrabbit-oak
cardinality = 4,
options = {
@Option(label = "AccessControlAction", value = "org.apache.jackrabbit.oak.spi.security.user.action.AccessControlAction"),
@Option(label = "PasswordValidationAction", value = "org.apache.jackrabbit.oak.spi.security.user.action.PasswordValidationAction"),
@Option(label = "PasswordChangeAction", value = "org.apache.jackrabbit.oak.spi.security.user.action.PasswordChangeAction"),
@Option(label = "ClearMembershipAction", value = "org.apache.jackrabbit.oak.spi.security.user.action.ClearMembershipAction")
})
String[] enabledActions();
代码示例来源:origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak
cardinality = 4,
options = {
@Option(label = "AccessControlAction", value = "org.apache.jackrabbit.oak.spi.security.user.action.AccessControlAction"),
@Option(label = "PasswordValidationAction", value = "org.apache.jackrabbit.oak.spi.security.user.action.PasswordValidationAction"),
@Option(label = "PasswordChangeAction", value = "org.apache.jackrabbit.oak.spi.security.user.action.PasswordChangeAction"),
@Option(label = "ClearMembershipAction", value = "org.apache.jackrabbit.oak.spi.security.user.action.ClearMembershipAction")
})
String[] enabledActions();
代码示例来源:origin: Adobe-Consulting-Services/acs-aem-commons
description = "Select default behavior if conflict resolution is not provided at the review task level.",
options = {
@Option(label = CONFLICT_RESOLUTION_NEW_VERSION, value = "Add as version (new-version)"),
@Option(label = CONFLICT_RESOLUTION_NEW_ASSET, value = "Add as new asset (new-asset)"),
@Option(label = CONFLICT_RESOLUTION_REPLACE, value = "Replace (replace)"),
@Option(label = CONFLICT_RESOLUTION_SKIP, value = "Skip (skip)")
},
defaultValue = DEFAULT_DEFAULT_CONFLICT_RESOLUTION)
代码示例来源:origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak
cardinality = 2,
options = {
@Option(label = "USER_MANAGEMENT", value = "USER_MANAGEMENT"),
@Option(label = "REMOVE_NODE", value = "REMOVE_NODE")
})
String permissionsJr2();
description = "Behavior for access control related items upon XML import.",
options = {
@Option(label = ImportBehavior.NAME_ABORT, value = ImportBehavior.NAME_ABORT),
@Option(label = ImportBehavior.NAME_BESTEFFORT, value = ImportBehavior.NAME_BESTEFFORT),
@Option(label = ImportBehavior.NAME_IGNORE, value = ImportBehavior.NAME_IGNORE)
})
String importBehavior() default ImportBehavior.NAME_ABORT;
代码示例来源:origin: apache/jackrabbit-oak
cardinality = 2,
options = {
@Option(label = "USER_MANAGEMENT", value = "USER_MANAGEMENT"),
@Option(label = "REMOVE_NODE", value = "REMOVE_NODE")
})
String permissionsJr2();
description = "Behavior for access control related items upon XML import.",
options = {
@Option(label = ImportBehavior.NAME_ABORT, value = ImportBehavior.NAME_ABORT),
@Option(label = ImportBehavior.NAME_BESTEFFORT, value = ImportBehavior.NAME_BESTEFFORT),
@Option(label = ImportBehavior.NAME_IGNORE, value = ImportBehavior.NAME_IGNORE)
})
String importBehavior() default ImportBehavior.NAME_ABORT;
代码示例来源:origin: org.apache.jackrabbit/oak-core
cardinality = 2,
options = {
@Option(label = "USER_MANAGEMENT", value = "USER_MANAGEMENT"),
@Option(label = "REMOVE_NODE", value = "REMOVE_NODE")
})
String permissionsJr2();
description = "Behavior for access control related items upon XML import.",
options = {
@Option(label = ImportBehavior.NAME_ABORT, value = ImportBehavior.NAME_ABORT),
@Option(label = ImportBehavior.NAME_BESTEFFORT, value = ImportBehavior.NAME_BESTEFFORT),
@Option(label = ImportBehavior.NAME_IGNORE, value = ImportBehavior.NAME_IGNORE)
})
String importBehavior() default ImportBehavior.NAME_ABORT;
代码示例来源:origin: Adobe-Consulting-Services/acs-aem-commons
+ "will be used.",
options = {
@Option(value = OPTION_INHERIT, label = "Inherit"),
@Option(value = OPTION_ACTIVATE, label = "Invalidate Cache"),
@Option(value = OPTION_DELETE, label = "Delete Cache")
})
String prop_replication$_$action$_$type();
代码示例来源:origin: Adobe-Consulting-Services/acs-aem-samples
@Option(label = "Option Foo", value = "foo"),
@Option(label = "Option Bar", value = "bar"),
代码示例来源:origin: org.apache.sling/org.apache.sling.event
description="The priority for the threads used by this queue. Default is norm.",
options = {
@Option(label="Norm",value="NORM"),
@Option(label="Min",value="MIN"),
@Option(label="Max",value="MAX")
})
String queue_priority() default ConfigurationConstants.DEFAULT_PRIORITY;
代码示例来源:origin: Adobe-Consulting-Services/acs-aem-commons
description = "The 'value' used to set the 'replicated at' property. [ Default: Package Last Modified ]",
options = {
@Option(
value = "PACKAGE_LAST_MODIFIED",
label = "Package Last Modified"
),
@Option(
value = "CURRENT_TIME",
label = "Current Time"
代码示例来源:origin: apache/jackrabbit-oak
+ "to apply to the existing providers (default value is AND).",
options = {
@Option(label = "AND", value = "AND"),
@Option(label = "OR", value = "OR")
代码示例来源:origin: io.wcm/io.wcm.dam.asset-service
@Option(label = TimestampDataVersionStrategy.STRATEGY + ": Timestamp of last DAM event", value = TimestampDataVersionStrategy.STRATEGY),
@Option(label = ChecksumDataVersionStrategy.STRATEGY + ": Aggregated checksum of DAM assets", value = ChecksumDataVersionStrategy.STRATEGY)
})
String dataVersionStrategy() default TimestampDataVersionStrategy.STRATEGY;
内容来源于网络,如有侵权,请联系作者删除!