Package net.sf.okapi.common
Interface ISkeleton
-
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
BlockSkeleton,GenericSkeleton,ICMLSkeleton,MetadataSkeleton,Xliff2Skeleton,ZipSkeleton
public interface ISkeleton extends Cloneable
Represents a skeleton object. It is an object that is associated to a resource and carries data about the non extractable part of the resource. Skeleton objects are used by theIFilterWriterimplementations to reconstruct the original file format.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ISkeletonclone()Clones this skeleton object.IResourcegetParent()Gets the parent resource of this skeleton.voidsetParent(IResource parent)Sets a parent of this skeleton object.StringtoString()Gets a string representation of this skeleton object.
-
-
-
Method Detail
-
toString
String toString()
Gets a string representation of this skeleton object. The value of the returned string depends on each implementation of class that implements ISkeleton. Different implementations may return strings that cannot be compared in a meaningful way.
-
clone
ISkeleton clone()
Clones this skeleton object.- Returns:
- a new skeleton object that is a copy of this one.
-
setParent
void setParent(IResource parent)
Sets a parent of this skeleton object. The parent is the resource that attaches this skeleton with SetSkeleton(). Normally the IResorce implementations set themselves as a parent for the skeleton.- Parameters:
parent- reference to the resource that attaches this skeleton object with IResource.setSkeleton()
-
getParent
IResource getParent()
Gets the parent resource of this skeleton.- Returns:
- reference to the resource that attaches this skeleton object with IResource.setSkeleton()
-
-