Skip to content

Commit 24b3fe0

Browse files
committed
Fix javadoc for module "framework"
See #396.
1 parent 91f02e4 commit 24b3fe0

File tree

4 files changed

+42
-6
lines changed

4 files changed

+42
-6
lines changed

metafacture-framework/src/main/java/org/metafacture/framework/annotations/Description.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,19 @@
2222
import java.lang.annotation.RetentionPolicy;
2323
import java.lang.annotation.Target;
2424

25-
2625
/**
27-
* @author Markus Michael Geipel
2826
* Metadata for pipe elements
27+
*
28+
* @author Markus Michael Geipel
2929
*/
3030
@Documented
3131
@Retention(RetentionPolicy.RUNTIME)
3232
@Target(ElementType.TYPE)
3333
public @interface Description {
34+
/**
35+
* Returns the description of the class.
36+
*
37+
* @return the description as String
38+
*/
3439
String value();
3540
}

metafacture-framework/src/main/java/org/metafacture/framework/annotations/In.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,19 @@
2222
import java.lang.annotation.RetentionPolicy;
2323
import java.lang.annotation.Target;
2424

25-
2625
/**
27-
* @author Markus Michael Geipel
2826
* Metadata for pipe elements
27+
*
28+
* @author Markus Michael Geipel
2929
*/
3030
@Documented
3131
@Retention(RetentionPolicy.RUNTIME)
3232
@Target(ElementType.TYPE)
3333
public @interface In {
34+
/**
35+
* Returns the class used as input to when using the class in a pipe.
36+
*
37+
* @return the Class
38+
*/
3439
Class<?> value();
3540
}

metafacture-framework/src/main/java/org/metafacture/framework/annotations/Out.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,19 @@
2222
import java.lang.annotation.RetentionPolicy;
2323
import java.lang.annotation.Target;
2424

25-
2625
/**
26+
* Metadata for pipe elements.
27+
*
2728
* @author Markus Michael Geipel
28-
* Metadata for pipe elements
2929
*/
3030
@Documented
3131
@Retention(RetentionPolicy.RUNTIME)
3232
@Target(ElementType.TYPE)
3333
public @interface Out {
34+
/**
35+
* Returns the class used as output when using this class in a pipe.
36+
*
37+
* @return the Class
38+
*/
3439
Class<?> value();
3540
}

metafacture-framework/src/main/java/org/metafacture/framework/objects/Triple.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ public Triple(final String subject, final String predicate,
4040
this(subject, predicate, object, ObjectType.STRING);
4141
}
4242

43+
/**
44+
* Constructs a Triple.
45+
*
46+
* @param subject the subject
47+
* @param predicate the predicate
48+
* @param object the object
49+
* @param objectType the ObjectType
50+
*/
4351
public Triple(final String subject, final String predicate,
4452
final String object, final ObjectType objectType) {
4553
this.subject = subject;
@@ -69,6 +77,13 @@ public ObjectType getObjectType() {
6977
return objectType;
7078
}
7179

80+
/**
81+
* Reads an ObjectInputStream as Triple and returns it.
82+
*
83+
* @param in the ObjectInputStream
84+
* @return the Triple
85+
* @throws IOException
86+
*/
7287
public static Triple read(final ObjectInputStream in) throws IOException {
7388
try {
7489
return new Triple(in.readUTF(), in.readUTF(), in.readUTF(),
@@ -79,6 +94,12 @@ public static Triple read(final ObjectInputStream in) throws IOException {
7994
}
8095
}
8196

97+
/**
98+
* Writes the Triple to an ObjectOutputStream.
99+
*
100+
* @param out the ObjectOutputStream.
101+
* @throws IOException
102+
*/
82103
public void write(final ObjectOutputStream out) throws IOException {
83104
out.writeUTF(subject);
84105
out.writeUTF(predicate);

0 commit comments

Comments
 (0)