public interface INameable extends IWithProperties, IWithBilingualProperties, IWithAnnotations, IResource
COPY_ALL, COPY_CONTENT, COPY_PROPERTIES, COPY_SEGMENTATION, COPY_SEGMENTED_CONTENT, CREATE_EMPTY| Modifier and Type | Method and Description |
|---|---|
Property |
createTargetProperty(LocaleId locId,
String name,
boolean overwriteExisting,
int creationOptions)
Creates or get a target property based on the corresponding source.
|
String |
getMimeType()
Gets the type of content of this resource.
|
String |
getName()
Gets the name of this resource.
|
String |
getType()
Gets the type information associated with this resource.
|
boolean |
isTranslatable()
Indicates if the content of this resource is translatable.
|
boolean |
preserveWhitespaces()
Indicates if the white-spaces in the content of this resource should be preserved.
|
void |
setIsTranslatable(boolean value)
Sets the flag indicating if the content of this resource is translatable.
|
void |
setMimeType(String value)
Sets the type of content of this resource.
|
void |
setName(String name)
Sets the name of this resource.
|
void |
setPreserveWhitespaces(boolean value)
sets the flag indicating if the white-spaces in the content of this resource should be preserved.
|
void |
setType(String value)
Sets the type information associated with this resource.
|
copy, getProperty, getPropertyNames, hasProperty, removeProperty, setPropertycopy, getSourceProperty, getSourcePropertyNames, getTargetLocales, getTargetProperty, getTargetPropertyNames, hasSourceProperty, hasTargetProperty, removeSourceProperty, removeTargetProperty, setSourceProperty, setTargetPropertycopy, getAnnotation, getAnnotations, setAnnotationgetId, getSkeleton, setId, setSkeletonString getName()
void setName(String name)
name - New name to set.String getType()
void setType(String value)
value - The new type information.String getMimeType()
void setMimeType(String value)
value - The new type of content of this resource.Property createTargetProperty(LocaleId locId, String name, boolean overwriteExisting, int creationOptions)
locId - The target locale to use.name - The name of the property to create (or retrieve)overwriteExisting - True to overwrite any existing property.
False to not create a new property if one exists already.creationOptions - Creation options:
boolean isTranslatable()
void setIsTranslatable(boolean value)
value - True to indicate that the content of this resource is translatable.boolean preserveWhitespaces()
void setPreserveWhitespaces(boolean value)
value - True to indicate that the white-spaces in the content of this resource should be preserved.Copyright © 2021. All rights reserved.