SourceAttachment

public class SourceAttachment extends AbstractTermAttachment

A tree-wide source resource and parse controller attachment. Uses ParentAttachment to identify the root of a tree, where this attachment is stored.

Fields

TYPE

public static final TermAttachmentType<SourceAttachment> TYPE

Methods

getAttachmentType

public TermAttachmentType<SourceAttachment> getAttachmentType()

getFile

public FileObject getFile()

getResource

public static FileObject getResource(ISimpleTerm term, IResourceService resourceService)

putSource

public static void putSource(ISimpleTerm term, FileObject resource)

Sets the resource for a term tree. Should only be applied to the root of a tree.