Package de.hsh.graja.transform
Class TransformComment
java.lang.Object
de.hsh.graja.transform.TransformComment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappend(DocumentTO doc, DocumentTO toAppend) static booleanareMatchingKinds(DocumentTO d1, DocumentTO d2) static DocumentTOcreateDocumentTO(Sequence comments, RDKind kind, Boolean useJavascript, String namespace) static ArrayList<DocumentTO>createDocumentTOList(Sequence comments, List<RDKind> rdKinds, Boolean useJavascript, String namespace) static RDKindcreateRDKind(RDKindTO rdKindTO) createRDKinds(Collection<RDKindTO> rdKinds) static ResultSpeccreateResultSpec(ResultSpecTO rsto) static StringgetTextFrom(DocumentTO document) static booleanisStudentIncluded(ResultSpecTO resultSpec) static booleanisTeacherIncluded(ResultSpecTO resultSpec) static voidprepend(DocumentTO doc, DocumentTO toPrepend)
-
Constructor Details
-
TransformComment
public TransformComment()
-
-
Method Details
-
createDocumentTOList
public static ArrayList<DocumentTO> createDocumentTOList(Sequence comments, List<RDKind> rdKinds, Boolean useJavascript, String namespace) throws UnsupportedEncodingException - Parameters:
comments-rdKinds-useJavascript- may be null, if kind is not HTML. Default: dont use javascript.namespace-- Returns:
- Throws:
UnsupportedEncodingException
-
createDocumentTO
public static DocumentTO createDocumentTO(Sequence comments, RDKind kind, Boolean useJavascript, String namespace) throws UnsupportedEncodingException - Parameters:
comments-kind-useJavascript- may be null, if kind is not HTML. Default: dont use javascript.namespace-- Returns:
- Throws:
UnsupportedEncodingException
-
createResultSpec
- Throws:
IllegalArgumentException
-
createRDKinds
public static ArrayList<RDKind> createRDKinds(Collection<RDKindTO> rdKinds) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
createRDKind
- Throws:
IllegalArgumentException
-
areMatchingKinds
-
append
- Throws:
UnsupportedEncodingException
-
prepend
public static void prepend(DocumentTO doc, DocumentTO toPrepend) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
getTextFrom
- Throws:
UnsupportedEncodingException
-
isTeacherIncluded
-
isStudentIncluded
-