public class SemanticResource extends Resource implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
tokenizationConfig |
applicationId, author, converterClassId, description, keyValue, name, type
Constructor and Description |
---|
SemanticResource() |
SemanticResource(SemanticResource o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SemanticResource.
|
static SemanticResource |
fromString(java.lang.String s)
String representation of this SemanticResource.
|
java.lang.String |
getTokenizationConfig()
Specify the tokenization config to use
|
SemanticResource |
makeCopy()
Creates and returns a deep copy of this SemanticResource.
|
static SemanticResource |
readFrom(java.io.InputStream is)
Read this SemanticResource from an XML fragment.
|
void |
setTokenizationConfig(java.lang.String tokenizationConfig)
Specify the tokenization config to use
|
java.lang.String |
toString()
String representation of this SemanticResource.
|
SemanticResource |
withApplicationId(java.lang.String applicationId) |
SemanticResource |
withAuthor(java.lang.String author) |
SemanticResource |
withConverterClassId(java.lang.String converterClassId) |
SemanticResource |
withDescription(java.lang.String description) |
SemanticResource |
withKeyValue(java.util.Collection<KeyValue> __values) |
SemanticResource |
withKeyValue(KeyValue... __values)
Configuration of the resource.
|
SemanticResource |
withName(java.lang.String name) |
SemanticResource |
withTokenizationConfig(java.lang.String tokenizationConfig) |
SemanticResource |
withType(java.lang.String type) |
void |
writeTo(java.io.OutputStream os)
Write this SemanticResource as an XML fragment
|
getApplicationId, getAuthor, getConverterClassId, getDescription, getKeyValue, getName, getType, setApplicationId, setAuthor, setConverterClassId, setDescription, setName, setType
public SemanticResource()
public SemanticResource(SemanticResource o)
public SemanticResource withKeyValue(KeyValue... __values)
withKeyValue
in class Resource
public SemanticResource withKeyValue(java.util.Collection<KeyValue> __values)
withKeyValue
in class Resource
public SemanticResource withName(java.lang.String name)
public SemanticResource withType(java.lang.String type)
public SemanticResource withDescription(java.lang.String description)
withDescription
in class Resource
public SemanticResource withAuthor(java.lang.String author)
withAuthor
in class Resource
public SemanticResource withApplicationId(java.lang.String applicationId)
withApplicationId
in class Resource
public SemanticResource withConverterClassId(java.lang.String converterClassId)
withConverterClassId
in class Resource
public void setTokenizationConfig(java.lang.String tokenizationConfig)
public java.lang.String getTokenizationConfig()
public SemanticResource withTokenizationConfig(java.lang.String tokenizationConfig)
public SemanticResource makeCopy()
public static SemanticResource readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
public static SemanticResource fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
Copyright © 2021 Dassault Systèmes, All Rights Reserved.