Package de.hsh.graja.transform
Class TransformComment
java.lang.Object
de.hsh.graja.transform.TransformComment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
append
(DocumentTO doc, DocumentTO toAppend) static boolean
areMatchingKinds
(DocumentTO d1, DocumentTO d2) static DocumentTO
createDocumentTO
(Sequence comments, RDKind kind, Boolean useJavascript, String namespace) static ArrayList<DocumentTO>
createDocumentTOList
(Sequence comments, List<RDKind> rdKinds, Boolean useJavascript, String namespace) static RDKind
createRDKind
(RDKindTO rdKindTO) createRDKinds
(Collection<RDKindTO> rdKinds) static ResultSpec
createResultSpec
(ResultSpecTO rsto) static String
getTextFrom
(DocumentTO document) static boolean
isStudentIncluded
(ResultSpecTO resultSpec) static boolean
isTeacherIncluded
(ResultSpecTO resultSpec) static void
prepend
(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
-