Package org.omegat.core.data
Class SegmentProperties
- java.lang.Object
-
- org.omegat.core.data.SegmentProperties
-
public final class SegmentProperties extends java.lang.Object
Utility methods for working with segment property arrays. These arrays are simple key-value maps, where keys are on the even indexes and associated values immediately follow.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMMENT
static java.lang.String[]
EMPTY_PROPS
static java.lang.String
REFERENCE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]
copy(java.lang.String[] props)
static java.lang.String
getProperty(java.lang.String[] props, java.lang.String key)
static boolean
isEmpty(java.lang.String[] props)
static boolean
isReferenceEntry(java.lang.String[] props)
static java.lang.String
joinValues(java.lang.String[] props)
-
-
-
Field Detail
-
EMPTY_PROPS
public static final java.lang.String[] EMPTY_PROPS
-
COMMENT
public static final java.lang.String COMMENT
- See Also:
- Constant Field Values
-
REFERENCE
public static final java.lang.String REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(java.lang.String[] props)
-
copy
public static java.lang.String[] copy(java.lang.String[] props)
-
joinValues
public static java.lang.String joinValues(java.lang.String[] props)
-
isReferenceEntry
public static boolean isReferenceEntry(java.lang.String[] props)
-
getProperty
public static java.lang.String getProperty(java.lang.String[] props, java.lang.String key)
-
-