}
}
+ /**
+ * Creates a new empty {@link DefinedTerm} instance.
+ *
+ * @see #NewInstance(String, String, String)
+ */
+ public static DefinedTerm NewInstance(TermType termType) {
+ return new DefinedTerm(termType);
+ }
+
public static DefinedTerm NewInstance(TermType termType, Set<Representation> representations){
DefinedTerm term = null;
for (Representation representation : representations) {
if(term==null){
- term = new DefinedTerm(termType, representation.getDescription(), representation.getLabel(), representation.getAbbreviatedLabel());
- }
- else{
- term.addRepresentation(representation);
+ term = new DefinedTerm(termType);
}
+ term.addRepresentation(representation);
}
return term;
}
@Deprecated
protected DefinedTerm(){super(TermType.Unknown);}
+ protected DefinedTerm(TermType termType){
+ super(termType);
+ }
+
public DefinedTerm(TermType type, String description, String label, String labelAbbrev) {
super(type, description, label, labelAbbrev);
}