use of com.xenoage.utils.annotations.NonNull in project Zong by Xenoage.
the class MxlGroupBarline method read.
@NonNull
public static MxlGroupBarline read(XmlReader reader) {
MxlColor color = MxlColor.read(reader);
MxlGroupBarlineValue value = MxlGroupBarlineValue.read(reader);
return new MxlGroupBarline(value, color);
}
use of com.xenoage.utils.annotations.NonNull in project Zong by Xenoage.
the class MxlGroupSymbol method read.
@NonNull
public static MxlGroupSymbol read(XmlReader reader) {
MxlPosition position = MxlPosition.read(reader);
MxlColor color = MxlColor.read(reader);
MxlGroupSymbolValue value = MxlGroupSymbolValue.read(reader);
return new MxlGroupSymbol(value, position, color);
}
use of com.xenoage.utils.annotations.NonNull in project Zong by Xenoage.
the class MxlBeam method read.
@NonNull
public static MxlBeam read(XmlReader reader) {
int number = notNull(reader.getAttributeInt("number"), defaultNumber);
MxlBeamValue value = MxlBeamValue.read(reader);
return new MxlBeam(value, number);
}
use of com.xenoage.utils.annotations.NonNull in project Zong by Xenoage.
the class MxlMeasure method read.
@NonNull
public static MxlMeasure read(XmlReader reader) {
String number = reader.getAttributeNotNull("number");
MxlMusicData musicData = new MxlMusicData();
while (reader.openNextChildElement()) {
musicData.readElement(reader);
reader.closeElement();
}
return new MxlMeasure(musicData, number);
}
use of com.xenoage.utils.annotations.NonNull in project Zong by Xenoage.
the class CompressedFileInput method readRootFilePath.
@NonNull
private String readRootFilePath(XmlReader containerReader) throws IOException {
XmlReader r = containerReader;
// root element
r.openNextChildElement();
while (r.openNextChildElement()) {
if (r.getElementName().equals("rootfiles")) {
// rootfiles element
while (r.openNextChildElement()) {
if (r.getElementName().equals("rootfile")) {
// rootfile element
String fullPath = r.getAttribute("full-path");
if (fullPath == null)
throw new IOException("full-path of rootfile not found");
return fullPath;
}
r.closeElement();
}
}
r.closeElement();
}
throw new IOException("rootfile not found");
}
Aggregations