continue;
}
final String icon = reader.getAttributeValue(null, ATTR_ICON);
final String preview = reader.getAttributeValue(null, ATTR_PREVIEW);
final SWCComponent component = new SWCComponent();
if (className != null)
component.setQName(className.intern());
if (componentName != null)
component.setName(componentName.intern());
// uri is null-checked already
component.setURI(uri.intern());
if (icon != null)
component.setIcon(icon.intern());
if (preview != null)
component.setPreview(preview.intern());
swc.addComponent(component);
componentIndex.put(className, component);
}
else if (tagName.equals(TAG_SCRIPT))
{
String name = reader.getAttributeValue(null, ATTR_NAME);
String mod = reader.getAttributeValue(null, ATTR_MOD);
String signatureChecksum = reader.getAttributeValue(null, ATTR_SIGNATURE_CHECKSUM);
currentScript = new SWCScript();
if (name != null)
currentScript.setName(name.intern());
if (mod != null)
currentScript.setLastModified(Long.parseLong(mod));
if (signatureChecksum != null)
currentScript.setSignatureChecksum(signatureChecksum);
currentLibrary.addScript(currentScript);
timeStamps.put(name, mod);
}
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);