public final class FieldFactory extends Object
FieldFactory
is a factory for Field
instances with
frequently used fields.Modifier and Type | Method and Description |
---|---|
static boolean |
canCreateTypedField(Type<?> type) |
static Long |
dateToLong(String date)
Date values are saved with sec resolution
|
static Field |
newAncestorsField(String path) |
static Field |
newDepthField(String path) |
static Field |
newFulltextField(String value) |
static Field |
newFulltextField(String name,
String value) |
static Field |
newPathField(String path) |
static Field |
newPropertyField(String name,
String value,
boolean tokenized,
boolean stored) |
static Field |
newSuggestField(String... values) |
public static boolean canCreateTypedField(Type<?> type)
public static Field newPathField(String path)
public static Field newPropertyField(String name, String value, boolean tokenized, boolean stored)
public static Field newFulltextField(String value)
public static Field newAncestorsField(String path)
public static Field newDepthField(String path)
public static Field newSuggestField(String... values)
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"