Skip to content

Commit f39b7fa

Browse files
committed
Fixed javadocs errors (closes #94)
1 parent 1a44a9b commit f39b7fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+206
-26
lines changed

Diff for: regxmllib/src/main/java/com/sandflow/smpte/klv/KLVInputStream.java

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
*/
4141
public class KLVInputStream extends InputStream implements DataInput {
4242

43+
/**
44+
* Possible byte ordering of a KLV packet
45+
*/
4346
public enum ByteOrder {
4447
LITTLE_ENDIAN,
4548
BIG_ENDIAN

Diff for: regxmllib/src/main/java/com/sandflow/smpte/klv/exceptions/KLVException.java

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
*/
2626
package com.sandflow.smpte.klv.exceptions;
2727

28+
/**
29+
* Exceptions raised when processing KLV packets
30+
*/
2831
public class KLVException extends Exception {
2932

3033
public static String MAX_LENGTH_EXCEEED = "Maximum in-memory KLV size exceeded.";

Diff for: regxmllib/src/main/java/com/sandflow/smpte/klv/exceptions/TripletLengthException.java

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626

2727
package com.sandflow.smpte.klv.exceptions;
2828

29+
/**
30+
* Raised when the length of a KLV triplet is not valid
31+
*/
2932
public class TripletLengthException extends RuntimeException {
3033

3134
public TripletLengthException() {

Diff for: regxmllib/src/main/java/com/sandflow/smpte/mxf/RandomIndexPack.java

+15-1
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,19 @@ public static RandomIndexPack fromTriplet(Triplet triplet) throws KLVException {
8888
return pp;
8989
}
9090

91+
/**
92+
* @return Ordered array containing the offsets stored in the RIP
93+
*/
9194
public ArrayList<PartitionOffset> getOffsets() {
9295
return offsets;
9396
}
9497

9598
private final ArrayList<PartitionOffset> offsets = new ArrayList<>();
9699

97-
static public class PartitionOffset {
100+
/**
101+
* Represents one partition offset entry stored in the RIP
102+
*/
103+
static public class PartitionOffset {
98104
private final long bodySID;
99105
private final long offset;
100106

@@ -103,10 +109,18 @@ public PartitionOffset(long bodySID, long offset) {
103109
this.offset = offset;
104110
}
105111

112+
/**
113+
*
114+
* @return Identifies the partition
115+
*/
106116
public long getBodySID() {
107117
return bodySID;
108118
}
109119

120+
/**
121+
*
122+
* @return Offset (in bytes) of the partition
123+
*/
110124
public long getOffset() {
111125
return offset;
112126
}

Diff for: regxmllib/src/main/java/com/sandflow/smpte/register/QualifiedSymbol.java

+7
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,17 @@ public QualifiedSymbol(String symbol, URI namespace) {
4646
this.namespace = namespace;
4747
}
4848

49+
/**
50+
* @return Namespace component of the Qualified Symbol
51+
*/
4952
public String getSymbol() {
5053
return symbol;
5154
}
5255

56+
/**
57+
*
58+
* @return Namespace component of the Qualified Symbol
59+
*/
5360
public URI getNamespace() {
5461
return namespace;
5562
}

Diff for: regxmllib/src/main/java/com/sandflow/smpte/register/exceptions/DuplicateEntryException.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
package com.sandflow.smpte.register.exceptions;
2727

2828
/**
29-
*
30-
* @author Pierre-Anthony Lemieux ([email protected])
29+
* Raised when two entries have identical ULs and/or symbols
3130
*/
3231
public class DuplicateEntryException extends Exception {
3332

Diff for: regxmllib/src/main/java/com/sandflow/smpte/register/exceptions/InvalidEntryException.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
package com.sandflow.smpte.register.exceptions;
2727

2828
/**
29-
*
30-
* @author Pierre-Anthony Lemieux ([email protected])
29+
* Raised when an entry is not valid
3130
*/
3231
public class InvalidEntryException extends Exception {
3332

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/FragmentBuilder.java

+10-5
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@
8787
*/
8888
public class FragmentBuilder {
8989

90+
/**
91+
* Defines all events raised by this class
92+
*/
9093
public static enum EventCodes {
9194

9295
/**
@@ -173,7 +176,10 @@ private EventCodes(Event.Severity severity) {
173176
}
174177

175178
}
176-
179+
180+
/**
181+
* All events raised by this class are instances of this class
182+
*/
177183
public static class FragmentEvent extends com.sandflow.util.events.BasicEvent {
178184

179185
final String reason;
@@ -287,8 +293,8 @@ public FragmentBuilder(DefinitionResolver defresolver,
287293
* Instantiates a FragmentBuilder
288294
*
289295
* @deprecated Replaced by
290-
* {@link FragmentBuilder(DefinitionResolver, Map<UUID, Set>,
291-
* AUIDNameResolver, EventHandler)}. This constructor does not allow the
296+
* {@link #FragmentBuilder(com.sandflow.smpte.regxml.dict.DefinitionResolver, java.util.Map, com.sandflow.smpte.regxml.FragmentBuilder.AUIDNameResolver, com.sandflow.util.events.EventHandler)}.
297+
* This constructor does not allow the
292298
* caller to provide an event handler, and instead uses java.util.logging to
293299
* output events.
294300
*
@@ -332,8 +338,7 @@ public boolean handle(com.sandflow.util.events.Event evt) {
332338
* Instantiates a FragmentBuilder.
333339
*
334340
* @deprecated Replaced by
335-
* {@link FragmentBuilder(DefinitionResolver, Map<UUID, Set>,
336-
* AUIDNameResolver, EventHandler)}. This constructor does not allow the
341+
* {@link #FragmentBuilder(com.sandflow.smpte.regxml.dict.DefinitionResolver, java.util.Map, com.sandflow.smpte.regxml.FragmentBuilder.AUIDNameResolver, com.sandflow.util.events.EventHandler) }. This constructor does not allow the
337342
* caller to provide an event handler, and instead uses java.util.logging to
338343
* output events.
339344
*

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/MXFFragmentBuilder.java

+12-5
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ public class MXFFragmentBuilder {
6767
private static final UL PREFACE_KEY
6868
= UL.fromURN("urn:smpte:ul:060e2b34.027f0101.0d010101.01012f00");
6969

70+
/**
71+
* Defines all events raised by this class
72+
*/
7073
public static enum EventCodes {
7174

7275
/**
@@ -97,7 +100,10 @@ private EventCodes(Event.Severity severity) {
97100
}
98101

99102
}
100-
103+
104+
/**
105+
* All events raised by this class are instance of this class
106+
*/
101107
public static class MXFEvent extends BasicEvent {
102108

103109
public MXFEvent(EventCodes kind, String message) {
@@ -130,8 +136,7 @@ static void handleEvent(EventHandler handler, com.sandflow.util.events.Event evt
130136
}
131137

132138
/**
133-
* @deprecated Replaced by {@link fromInputStreamfromInputStream(InputStream,DefinitionResolver,
134-
* FragmentBuilder.AUIDNameResolver,UL,Document)}. This constructor does not allow the
139+
* @deprecated Replaced by {@link #fromInputStream(java.io.InputStream, com.sandflow.smpte.regxml.dict.DefinitionResolver, com.sandflow.smpte.regxml.FragmentBuilder.AUIDNameResolver, com.sandflow.util.events.EventHandler, com.sandflow.smpte.util.UL, org.w3c.dom.Document) }. This constructor does not allow the
135140
* caller to provide an event handler, and instead uses java.util.logging to
136141
* output events.
137142
*
@@ -160,8 +165,10 @@ public static DocumentFragment fromInputStream(InputStream mxfpartition,
160165
}
161166

162167
/**
163-
* @deprecated Replaced by {@link fromInputStreamfromInputStream(InputStream,DefinitionResolver,
164-
* FragmentBuilder.AUIDNameResolver,UL,Document)}. This constructor does not allow the
168+
* @deprecated Replaced by {@link #fromInputStream(java.io.InputStream, com.sandflow.smpte.regxml.dict.DefinitionResolver,
169+
* com.sandflow.smpte.regxml.FragmentBuilder.AUIDNameResolver, com.sandflow.util.events.EventHandler,
170+
* com.sandflow.smpte.util.UL, org.w3c.dom.Document)}
171+
* This constructor does not allow the
165172
* caller to provide an event handler, and instead uses java.util.logging to
166173
* output events.
167174
*

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/XMLSchemaBuilder.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ public class XMLSchemaBuilder {
9999
private final NamespacePrefixMapper prefixes = new NamespacePrefixMapper();
100100
private final EventHandler evthandler;
101101

102+
/**
103+
* Defines the events returned by this class
104+
*/
102105
public static enum EventCodes {
103106

104107
/**
@@ -114,6 +117,9 @@ private EventCodes(Event.Severity severity) {
114117

115118
}
116119

120+
/**
121+
* All events raised by this class are instances of this class.
122+
*/
117123
public static class SchemaEvent extends BasicEvent {
118124

119125
final String reason;
@@ -189,7 +195,7 @@ public XMLSchemaBuilder(DefinitionResolver resolver, EventHandler handler) {
189195
* any metadictionary covered by the resolver.
190196
*
191197
* @deprecated Replaced by
192-
* {@link XMLSchemaBuilder(DefinitionResolver resolver, EventHandler handler)}
198+
* {@link #XMLSchemaBuilder(com.sandflow.smpte.regxml.dict.DefinitionResolver, com.sandflow.util.events.EventHandler) }
193199
* This constructor does not allow the caller to provide an event handler,
194200
* and instead uses java.util.logging to output events.
195201
*
@@ -240,7 +246,6 @@ private String createQName(URI uri, String name) {
240246
* @throws com.sandflow.smpte.regxml.XMLSchemaBuilder.RuleException
241247
* @throws org.xml.sax.SAXException
242248
* @throws java.io.IOException
243-
* @throws java.net.URISyntaxException
244249
*/
245250
public Document fromDictionary(MetaDictionary dict) throws ParserConfigurationException, KLVException, RuleException, SAXException, IOException {
246251

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/MetaDictionary.java

+9
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,23 @@ public void add(Definition def) throws IllegalDefinitionException {
243243
this.definitions.add(def);
244244
}
245245

246+
/**
247+
* @return SchemeID field of the MetaDictionay
248+
*/
246249
public UUID getSchemeID() {
247250
return schemeID;
248251
}
249252

253+
/**
254+
* @return SchemeURI field of the MetaDictionay
255+
*/
250256
public URI getSchemeURI() {
251257
return schemeURI;
252258
}
253259

260+
/**
261+
* @return Description field of the MetaDictionay
262+
*/
254263
public String getDescription() {
255264
return description;
256265
}

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/CharacterTypeDefinition.java

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
import javax.xml.bind.annotation.XmlAccessType;
2929
import javax.xml.bind.annotation.XmlAccessorType;
3030

31+
/**
32+
* Character Type Definition as defined in ST 2001-1
33+
*/
3134
@XmlAccessorType(XmlAccessType.NONE)
3235
public class CharacterTypeDefinition extends Definition {
3336

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/ClassDefinition.java

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
import javax.xml.bind.annotation.XmlElement;
3434
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
3535

36+
/**
37+
* Class Definition as defined in ST 2001-1
38+
*/
3639
@XmlAccessorType(XmlAccessType.NONE)
3740
public class ClassDefinition extends Definition {
3841

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/Definition.java

-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ public void setName(String name) {
104104
* Supports the visitor design pattern.
105105
* @see DefinitionVisitor
106106
* @param visitor Visitor instance that will process the definition
107-
* @throws com.sandflow.smpte.regxml.dict.definitions.DefinitionVisitor.VisitorException
108107
*/
109108
abstract public void accept(DefinitionVisitor visitor) throws DefinitionVisitor.VisitorException;
110109

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/EnumerationTypeDefinition.java

+4
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,15 @@
4242
import org.w3c.dom.Document;
4343
import static org.w3c.dom.Node.ELEMENT_NODE;
4444

45+
/**
46+
* Enumeration Type Definition as defined in ST 2001-1
47+
*/
4548
@XmlAccessorType(XmlAccessType.NONE)
4649
public class EnumerationTypeDefinition extends Definition {
4750

4851
private static class EnumerationElementAdapter extends XmlAdapter<Object, ArrayList<Element>> {
4952

53+
@Override
5054
public ArrayList<Element> unmarshal(Object v) throws Exception {
5155

5256
ArrayList<Element> al = new ArrayList<>();

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/ExtendibleEnumerationTypeDefinition.java

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
import javax.xml.bind.annotation.XmlElement;
3535
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
3636

37+
/**
38+
* Extendible Type Definition as defined in ST 2001-1
39+
*/
3740
@XmlAccessorType(XmlAccessType.NONE)
3841
public class ExtendibleEnumerationTypeDefinition extends Definition {
3942

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/FixedArrayTypeDefinition.java

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
import javax.xml.bind.annotation.XmlElement;
3333
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
3434

35+
/**
36+
* Fixed Array Type Definition as defined in ST 2001-1
37+
*/
3538
@XmlAccessorType(XmlAccessType.NONE)
3639
public class FixedArrayTypeDefinition extends Definition {
3740

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/FloatTypeDefinition.java

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
import javax.xml.bind.annotation.XmlEnumValue;
3333
import javax.xml.bind.annotation.XmlType;
3434

35+
/**
36+
* Float Type Definition as defined in ST 2001-1
37+
*/
3538
@XmlAccessorType(XmlAccessType.NONE)
3639
public class FloatTypeDefinition extends Definition {
3740

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/IndirectTypeDefinition.java

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
import javax.xml.bind.annotation.XmlAccessType;
2929
import javax.xml.bind.annotation.XmlAccessorType;
3030

31+
/**
32+
* Indirect Type Definition as defined in ST 2001-1
33+
*/
3134
@XmlAccessorType(XmlAccessType.NONE)
3235
public class IndirectTypeDefinition extends Definition {
3336

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/IntegerTypeDefinition.java

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
import javax.xml.bind.annotation.XmlEnum;
3232
import javax.xml.bind.annotation.XmlEnumValue;
3333

34+
/**
35+
* Integer Type Definition as defined in ST 2001-1
36+
*/
3437
@XmlAccessorType(XmlAccessType.NONE)
3538
public class IntegerTypeDefinition extends Definition {
3639

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/LensSerialFloatTypeDefinition.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import javax.xml.bind.annotation.XmlAccessorType;
3030

3131
/**
32-
* Corresponds to a type defined in RDD 18 and erroneously added to Class 13.
32+
* Corresponds to a type defined in RDD 18.
3333
* @deprecated
3434
*/
3535
@XmlAccessorType(XmlAccessType.NONE)

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/OpaqueTypeDefinition.java

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
import javax.xml.bind.annotation.XmlAccessType;
2929
import javax.xml.bind.annotation.XmlAccessorType;
3030

31+
/**
32+
* Opaque Type Definition as defined in ST 2001-1
33+
*/
3134
@XmlAccessorType(XmlAccessType.NONE)
3235
public class OpaqueTypeDefinition extends Definition {
3336

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/PropertyAliasDefinition.java

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
import javax.xml.bind.annotation.XmlElement;
3434
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
3535

36+
/**
37+
* Property Alias Definition as defined in ST 2001-1
38+
*/
3639
@XmlAccessorType(XmlAccessType.NONE)
3740
public class PropertyAliasDefinition extends PropertyDefinition {
3841

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/PropertyDefinition.java

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
import javax.xml.bind.annotation.XmlElement;
3333
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
3434

35+
/**
36+
* Property Definition as defined in ST 2001-1
37+
*/
3538
@XmlAccessorType(XmlAccessType.NONE)
3639
public class PropertyDefinition extends Definition {
3740

Diff for: regxmllib/src/main/java/com/sandflow/smpte/regxml/dict/definitions/RecordTypeDefinition.java

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
import org.w3c.dom.Document;
4242
import static org.w3c.dom.Node.ELEMENT_NODE;
4343

44+
/**
45+
* Record Type Definition as defined in ST 2001-1
46+
*/
4447
@XmlAccessorType(XmlAccessType.NONE)
4548
public class RecordTypeDefinition extends Definition {
4649

0 commit comments

Comments
 (0)