public class FeatureImpl extends Object implements Feature
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Feature o)
Note: you can only compare features from the same type system.
|
int |
getCode() |
Type |
getDomain()
Get the domain type for this feature.
|
String |
getName()
Get the name for this feature.
|
Type |
getRange()
Get the range type for this feature.
|
String |
getShortName()
Get the unqualified, short name of this feature.
|
TypeSystem |
getTypeSystem()
Get the type hierarchy that this feature belongs to.
|
boolean |
isMultipleReferencesAllowed()
Checks if there can be multiple references to values of this feature.
|
String |
toString() |
public int getCode()
public Type getDomain()
public Type getRange()
public String getName()
public String getShortName()
Feature
getShortName
in interface Feature
public TypeSystem getTypeSystem()
public int compareTo(Feature o)
compareTo
in interface Comparable<Feature>
public boolean isMultipleReferencesAllowed()
Feature
If this is false it indicates that this feature has exclusive ownership of the array or list, so changes to the array or list are localized. If this is true it indicates that the array or list may be shared, so changes to it may affect other objects in the CAS.
isMultipleReferencesAllowed
in interface Feature
true
iff the value type of this feature is an array or list and has been
declared to allow multiple references.Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.