|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.annotation.embedded.EmbeddedAnnotations
public class EmbeddedAnnotations
This class contains various utility methods for embedded annotations.
Constructor Summary | |
---|---|
EmbeddedAnnotations()
|
Method Summary | |
---|---|
static Collection<EmbeddedAnnotation> |
get(Page page)
Returns an unmodifiable list of all embedded annotations of given page. |
static String |
getText(EmbeddedAnnotation a)
|
static boolean |
hasText(EmbeddedAnnotation a)
|
static boolean |
isAnnotated(Document document)
Returns whether the given document is annotated. |
static boolean |
isAnnotated(Page page)
Returns whether the given page is annotated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmbeddedAnnotations()
Method Detail |
---|
public static Collection<EmbeddedAnnotation> get(Page page)
page
- the page the embedded annotations should be retrieved from
IllegalArgumentException
- if page is null
public static boolean isAnnotated(Document document)
document
- the document the annotation lookup should be done for
true
if at least one page of the document has annotations
IllegalArgumentException
- if document is null
public static boolean isAnnotated(Page page)
page
- the page the annotation lookup should be done for
true
if at least one annotation is contained in the page
IllegalArgumentException
- if page is null
public static boolean hasText(EmbeddedAnnotation a)
public static String getText(EmbeddedAnnotation a)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |