public class Property extends Object implements Cloneable
TextUnit rather that Property.| Modifier and Type | Field and Description |
|---|---|
static String |
APPROVED |
static String |
COORDINATES |
static String |
ENCODING |
static String |
ITS_LQI
Helper property used only for placing back some ITS and other annotations.
|
static String |
ITS_MTCONFIDENCE |
static String |
ITS_PROV |
static String |
LANGUAGE |
static String |
MAX_HEIGHT |
static String |
MAX_WIDTH
Sizing properties, can be applied to StartGroup or ITextUnit objects.
|
static String |
SIZE_UNIT |
static String |
STATE |
static String |
STATE_QUALIFIER |
static String |
TMX_hi |
static String |
TMX_i
For TMX filter - may be used by
TMXWriter or TMXFilterWriter |
static String |
XLIFF_PHASE |
static String |
XLIFF_TOOL |
| Constructor and Description |
|---|
Property() |
Property(String name,
String value)
Creates a new read-only property object with a name and a value.
|
Property(String name,
String value,
boolean isReadOnly)
Creates a new property object with a name, a vale and its read-only flag.
|
| Modifier and Type | Method and Description |
|---|---|
Property |
clone()
Clones this property.
|
boolean |
getBoolean()
Gets the boolean value of this property.
|
String |
getName()
Gets the name of this property.
|
String |
getValue()
Gets the value of this property.
|
boolean |
isReadOnly()
Indicates if this property is read-only.
|
protected void |
setName(String name) |
protected void |
setReadOnly(boolean isReadOnly) |
void |
setValue(String value)
Sets a new value for this property.
|
String |
toString()
Gets the string representation of this property.
|
public static final String ENCODING
public static final String LANGUAGE
public static final String APPROVED
public static final String COORDINATES
public static final String STATE_QUALIFIER
public static final String STATE
public static final String ITS_LQI
public static final String ITS_PROV
public static final String ITS_MTCONFIDENCE
public static final String XLIFF_TOOL
public static final String XLIFF_PHASE
public static final String MAX_WIDTH
public static final String MAX_HEIGHT
public static final String SIZE_UNIT
public static final String TMX_i
TMXWriter or TMXFilterWriterpublic static String TMX_hi
public Property()
public Property(String name, String value, boolean isReadOnly)
name - the name of the property (case-sensitive).value - the value of the property.isReadOnly - true if the property cannot be modified using the filter, false if you
can modify the value in the output document.public String toString()
public Property clone()
public String getName()
public String getValue()
public boolean getBoolean()
public void setValue(String value)
value - the new value to set.public boolean isReadOnly()
All property can be changed, but the ones flagged as read-only cannot be modified when re-writing the document from where they have been extracted.
protected void setName(String name)
protected void setReadOnly(boolean isReadOnly)
Copyright © 2021. All rights reserved.