Package de.hsh.graja.transform
Class TransformComment
- java.lang.Object
-
- de.hsh.graja.transform.TransformComment
-
public class TransformComment extends Object
-
-
Constructor Summary
Constructors Constructor Description TransformComment()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
static ArrayList<RDKind>
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)
-
-
-
Method Detail
-
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
public static ResultSpec createResultSpec(ResultSpecTO rsto) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
createRDKinds
public static ArrayList<RDKind> createRDKinds(Collection<RDKindTO> rdKinds) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
createRDKind
public static RDKind createRDKind(RDKindTO rdKindTO) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
areMatchingKinds
public static boolean areMatchingKinds(DocumentTO d1, DocumentTO d2)
-
append
public static void append(DocumentTO doc, DocumentTO toAppend) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
prepend
public static void prepend(DocumentTO doc, DocumentTO toPrepend) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
getTextFrom
public static String getTextFrom(DocumentTO document) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
isTeacherIncluded
public static boolean isTeacherIncluded(ResultSpecTO resultSpec)
-
isStudentIncluded
public static boolean isStudentIncluded(ResultSpecTO resultSpec)
-
-