Package net.sf.okapi.lib.xliff2.metadata
Class MetaGroup
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.core.BaseList<IMetadataItem>
-
- net.sf.okapi.lib.xliff2.metadata.MetaGroup
-
- All Implemented Interfaces:
Iterable<IMetadataItem>,IMetadataItem,IWithMetaGroup
public class MetaGroup extends BaseList<IMetadataItem> implements IWithMetaGroup, IMetadataItem
Represents a group ofIMetadataItemobjects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetaGroup.AppliesToTypes of object a meta-group can apply to.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGroup(MetaGroup group)Adds aMetaGroupobject to this object.MetaGroup.AppliesTogetAppliesTo()StringgetCategory()StringgetId()booleanisGroup()Indicates if this item is a meta-group or not.voidsetAppliesTo(MetaGroup.AppliesTo appliesTo)voidsetCategory(String category)voidsetId(String id)-
Methods inherited from class net.sf.okapi.lib.xliff2.core.BaseList
add, clear, get, isEmpty, iterator, remove, remove, set, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
MetaGroup
public MetaGroup()
Creates an emptyMetaGroupobject.
-
MetaGroup
public MetaGroup(String category)
Creates aMetaGroupobject with a given category parameter.- Parameters:
category- the category for this meta-group.
-
MetaGroup
public MetaGroup(MetaGroup original)
Copy constructor.- Parameters:
original- the original object to duplicate.
-
-
Method Detail
-
isGroup
public boolean isGroup()
Description copied from interface:IMetadataItemIndicates if this item is a meta-group or not.- Specified by:
isGroupin interfaceIMetadataItem- Returns:
- true if this is a meta-group object, false if it is a meta object.
-
getId
public String getId()
-
setId
public void setId(String id)
-
getCategory
public String getCategory()
-
setCategory
public void setCategory(String category)
-
getAppliesTo
public MetaGroup.AppliesTo getAppliesTo()
-
setAppliesTo
public void setAppliesTo(MetaGroup.AppliesTo appliesTo)
-
addGroup
public void addGroup(MetaGroup group)
Description copied from interface:IWithMetaGroupAdds aMetaGroupobject to this object.- Specified by:
addGroupin interfaceIWithMetaGroup- Parameters:
group- the meta-group to add.
-
-