|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SpecialFieldEnum>
org.apache.stanbol.entityhub.servicesapi.defaults.SpecialFieldEnum
public enum SpecialFieldEnum
Enumeration that defines fields that need to be treated specially by the Stanbol Entityhub.
All those field do use the NamespaceEnum.entityhubQuery namespace.
Entries of this enumeration are equals to the local name of the URIs.
and are also defined by the RdfResourceEnum. This enumeration is
intended to be used by Yard implementations to efficiently work with
special fields (e.g. decide if a field is a special field)
| Enum Constant Summary | |
|---|---|
fullText
The full text field. |
|
references
The semantic context field. |
|
| Method Summary | |
|---|---|
NamespaceEnum |
getNamespace()
|
String |
getQName()
|
static SpecialFieldEnum |
getSpecialField(String name)
Getter for the SpecialFieldEnum for the parsed name
(local name or qname or full URI) |
String |
getUri()
|
static boolean |
isSpecialField(String name)
Checks if the parsed name (local name or qname or full URI) is a special field |
static SpecialFieldEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SpecialFieldEnum[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SpecialFieldEnum fullText
Text and String values
of any outgoing relation
public static final SpecialFieldEnum references
Reference values
of any outgoing relation
| Method Detail |
|---|
public static SpecialFieldEnum[] values()
for (SpecialFieldEnum c : SpecialFieldEnum.values()) System.out.println(c);
public static SpecialFieldEnum valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getUri()
public String getQName()
public NamespaceEnum getNamespace()
public static final boolean isSpecialField(String name)
name - the local name, qname or URI
true if the parsed name references to a special field
or otherwise falsepublic static SpecialFieldEnum getSpecialField(String name)
SpecialFieldEnum for the parsed name
(local name or qname or full URI)
name - the local name, qname or URI
SpecialFieldEnum or null if the parsed
name does not refer to a special field.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||