public interface TypePriorities extends MetaDataObject
FsIndexDescription
.
This object implements MetaDataObject
, which implements
XMLizable
, so it can be serialized to and deserialized from an XML
element.
TypePriorities can declare that they import
other TypePriorities. At
runtime, these imports will be resolved to create a single logical TypePriorities object.
Note that type priorities imports are not automatically resolved when a TypePriorities object is
deserialized from XML. To resolve the imports, call the resolveImports()
method. Import
resolution is done automatically when a CAS is created using a TypePriorities object.
TypePriorities declarations can optionally be assigned a name
,
description
, vendor
, and
version
. It is recommended that these properties be set on any
TypePriorities declaration that is meant to be shared by (imported by) multiple components.
Modifier and Type | Method and Description |
---|---|
TypePriorityList |
addPriorityList()
Creates a new, empty
TypePriorityList and adds it to this object. |
void |
addPriorityList(TypePriorityList aPriorityList)
Adds a
TypePriorityList . |
String |
getDescription()
Gets the description of this TypePriorities declaration.
|
Import[] |
getImports()
Gets the imports declared by this TypePriorities declaration.
|
String |
getName()
Gets the name of this TypePriorities declaration.
|
TypePriorityList[] |
getPriorityLists()
Gets the
TypePriorityList s that define the priorities. |
String |
getVendor()
Gets the vendor of this TypePriorities declaration.
|
String |
getVersion()
Gets the version number of this TypePriorities declaration.
|
void |
removePriorityList(TypePriorityList aPriorityList)
Removes a
TypePriorityList . |
void |
resolveImports()
Resolves any import declarations in this Type Priorities declaration, adding the imported
TypePriorityList objects directly onto this TypePriorities object's
priorityLists . |
void |
resolveImports(Collection<String> aAlreadyImportedPriorityListURLs,
ResourceManager aResourceManager)
Resolves any import declarations in this Type Priorities declaration, adding the imported
TypePriorityList objects directly onto this TypePriorities object's
priorityLists . |
void |
resolveImports(ResourceManager aResourceManager)
Resolves any import declarations in this Type Priorities declaration, adding the imported
TypePriorityList objects directly onto this TypePriorities object's
priorityLists . |
void |
setDescription(String aDescription)
Sets the description of this TypePriorities declaration.
|
void |
setImports(Import[] aImports)
Sets the imports declared by this TypePriorities declaration.
|
void |
setName(String aName)
Sets the name of this TypePriorities declaration.
|
void |
setPriorityLists(TypePriorityList[] aPriorityLists)
Sets the
TypePriorityList s that define the priorities. |
void |
setVendor(String aVendor)
Sets the vendor of this TypePriorities declaration.
|
void |
setVersion(String aVersion)
Sets the version number of this TypePriorities declaration.
|
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
String getName()
void setName(String aName)
aName
- the name of this TypePriorities declarationUIMA_UnsupportedOperationException
- if this object is not modifiableString getVersion()
void setVersion(String aVersion)
aVersion
- the version number of this TypePriorities declaration, as a StringUIMA_UnsupportedOperationException
- if this object is not modifiableString getDescription()
void setDescription(String aDescription)
aDescription
- the description of this TypePriorities declarationUIMA_UnsupportedOperationException
- if this object is not modifiableString getVendor()
void setVendor(String aVendor)
aVendor
- the vendor of this TypePriorities declaration, as a String, null if none has been
specified.UIMA_UnsupportedOperationException
- if this object is not modifiableImport[] getImports()
void setImports(Import[] aImports)
aImports
- an array of imports declared by this TypePriorities declaration.TypePriorityList[] getPriorityLists()
TypePriorityList
s that define the priorities. Each
TypePriorityList
declares the relative priority of two or more types.TypePriorityList
s that define the prioritiesvoid setPriorityLists(TypePriorityList[] aPriorityLists)
TypePriorityList
s that define the priorities. Each
TypePriorityList
declares the relative priority of two or more types.aPriorityLists
- the TypePriorityList
s that define the prioritiesvoid addPriorityList(TypePriorityList aPriorityList)
TypePriorityList
.aPriorityList
- the TypePriorityList
to addTypePriorityList addPriorityList()
TypePriorityList
and adds it to this object.TypePriorityList
, which can be modified by the callervoid removePriorityList(TypePriorityList aPriorityList)
TypePriorityList
.aPriorityList
- the TypePriorityList
to removevoid resolveImports() throws InvalidXMLException
TypePriorityList
objects directly onto this TypePriorities object's
priorityLists
. The import elements are then deleted, so this
results in a structure that is equivalent to the imported elements having been defined locally.InvalidXMLException
- if either the import target does not exist or is invalidvoid resolveImports(ResourceManager aResourceManager) throws InvalidXMLException
TypePriorityList
objects directly onto this TypePriorities object's
priorityLists
. The import elements are then deleted, so this
results in a structure that is equivalent to the imported elements having been defined locally.aResourceManager
- the Resource Manager used to locate type priorities XML files imported by name. For
example, the path in which to locate these type priorities XML files can be set via
the ResourceManager.setDataPath(String)
method.InvalidXMLException
- if either the import target does not exist or is invalidvoid resolveImports(Collection<String> aAlreadyImportedPriorityListURLs, ResourceManager aResourceManager) throws InvalidXMLException
TypePriorityList
objects directly onto this TypePriorities object's
priorityLists
. The import elements are then deleted, so this
results in a structure that is equivalent to the imported elements having been defined locally.
This version is used internally to resolve nested imports.
aAlreadyImportedPriorityListURLs
- URLs of already imported type priorities, so we don't import them again.aResourceManager
- the Resource Manager used to locate type priorities XML files imported by name. For
example, the path in which to locate these type priorities XML files can be set via
the ResourceManager.setDataPath(String)
method.InvalidXMLException
- if either the import target does not exist or is invalidCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.