else if (tagName.equals(TAG_FLEX))
{
final String flexVersion = reader.getAttributeValue(null, ATTR_VERSION);
final String minSupportedVersion = reader.getAttributeValue(null, ATTR_MINIMUM_SUPPORTED_VERSION);
final String flexBuild = reader.getAttributeValue(null, ATTR_BUILD);
ISWCVersion swcVersion = swc.getVersion();
swcVersion.setFlexVersion(flexVersion);
swcVersion.setFlexMinSupportedVersion(minSupportedVersion);
swcVersion.setFlexBuild(flexBuild);
}
else if (tagName.equals(TAG_SWC))
{
final String swcVersion = reader.getAttributeValue(null, ATTR_VERSION);
swc.getVersion().setSWCVersion(swcVersion);
}
else if (tagName.equals(TAG_DEF))
{
String id = reader.getAttributeValue(null, ATTR_ID);
id = QNameNormalization.normalize(id);
currentScript.addDefinition(id);
final SWCComponent component = componentIndex.get(id);
if (component != null)
component.setScript(currentScript);
}
else if (tagName.equals(TAG_DEP))
{
String id = reader.getAttributeValue(null, ATTR_ID);
id = QNameNormalization.normalize(id);
final String type = reader.getAttributeValue(null, ATTR_TYPE);
assert type.length() == 1;
currentScript.addDependency(id, DependencyType.get(type.charAt(0)));
}
else if (tagName.equals(TAG_FILE))
{
String path = reader.getAttributeValue(null, ATTR_PATH);
String modString = reader.getAttributeValue(null, ATTR_MOD);
long mod = 0;
if (modString != null)
mod = Long.parseLong(modString);
SWCFileEntry fileEntry = new SWCFileEntry(containingSWCFile, path, mod);
swc.addFile(fileEntry);
}
else if (tagName.equals(TAG_DIGEST))
{
String type = reader.getAttributeValue(null, ATTR_TYPE);
String value = reader.getAttributeValue(null, ATTR_VALUE);
boolean isSigned = Boolean.parseBoolean(reader.getAttributeValue(null, ATTR_SIGNED));
SWCDigest swcDigest = new SWCDigest();
swcDigest.setType(type);
swcDigest.setValue(value);
swcDigest.setSigned(isSigned);
currentLibrary.addDigest(swcDigest);
}
else if (tagName.equals(TAG_METADATA))
{
String metadataName = reader.getAttributeValue(null, ATTR_NAME);
currentLibrary.addNameToKeepAS3MetadataSet(metadataName);
}
else if (tagName.equals(TAG_COMPILER))
{
final String compilerName = reader.getAttributeValue(null, ATTR_NAME);
final String compilerVersion = reader.getAttributeValue(null, ATTR_VERSION);
final String compilerBuild = reader.getAttributeValue(null, ATTR_BUILD);
ISWCVersion swcVersion = swc.getVersion();
swcVersion.setCompilerName(compilerName);
swcVersion.setCompilerVersion(compilerVersion);
swcVersion.setCompilerBuild(compilerBuild);
}
}
}
catch (XMLStreamException e)
{