Package net.sf.okapi.lib.xliff2.core
Interface IWithMetadata
-
- All Known Implementing Classes:
Match,MidFileData,StartGroupData,Unit
public interface IWithMetadataProvides the methods to add and retrieve metadata for an object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetadatagetMetadata()Gets theMetadataobject for the parent, creates an empty of if there is none.booleanhasMetadata()Indicates if the object has metadata.voidsetMetadata(Metadata metadata)sets theMetadataobject for the parent.
-
-
-
Method Detail
-
hasMetadata
boolean hasMetadata()
Indicates if the object has metadata.- Returns:
- true if the object has metadata, false otherwise.
-
getMetadata
Metadata getMetadata()
Gets theMetadataobject for the parent, creates an empty of if there is none.- Returns:
- the
Metadataobject for the parent (can be empty, but never null).
-
-