107 lines
2.7 KiB
Java
107 lines
2.7 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* javax.baja.sys.BIcon
|
|
* javax.baja.sys.Context
|
|
* javax.baja.sys.Sys
|
|
* javax.baja.sys.Type
|
|
* javax.baja.xml.XElem
|
|
*/
|
|
package com.tridium.install.part;
|
|
|
|
import com.tridium.install.BDependency;
|
|
import com.tridium.install.installable.BInstallable;
|
|
import com.tridium.install.part.BPart;
|
|
import javax.baja.sys.BIcon;
|
|
import javax.baja.sys.Context;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
import javax.baja.xml.XElem;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BArchPart
|
|
extends BPart {
|
|
public static final Type TYPE;
|
|
private static final BIcon icon;
|
|
static /* synthetic */ Class class$com$tridium$install$part$BArchPart;
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public boolean meets(BDependency bDependency) {
|
|
boolean bl = false;
|
|
if (bDependency.getPartType().is(TYPE) && this.matchesName(bDependency.getPartName())) {
|
|
bl = true;
|
|
}
|
|
return bl;
|
|
}
|
|
|
|
public static BPart make(XElem xElem) {
|
|
return BArchPart.make(xElem, null);
|
|
}
|
|
|
|
public static BPart make(XElem xElem, BInstallable bInstallable) {
|
|
if (xElem == null) {
|
|
return null;
|
|
}
|
|
return new BArchPart(xElem.get("name"), bInstallable);
|
|
}
|
|
|
|
public XElem getXml() {
|
|
XElem xElem = new XElem("arch");
|
|
xElem.setAttr("name", this.getPartName());
|
|
return xElem;
|
|
}
|
|
|
|
public boolean isNull() {
|
|
return this.getPartName().equals("nullarch");
|
|
}
|
|
|
|
public static BArchPart makeNull() {
|
|
return new BArchPart("nullarch", null);
|
|
}
|
|
|
|
public String toString(Context context) {
|
|
return "Arch Part: " + this.getPartName();
|
|
}
|
|
|
|
public BIcon getIcon() {
|
|
return icon;
|
|
}
|
|
|
|
static /* synthetic */ Class class(String string, boolean bl) {
|
|
try {
|
|
Class<?> clazz = Class.forName(string);
|
|
if (!bl) {
|
|
clazz = clazz.getComponentType();
|
|
}
|
|
return clazz;
|
|
}
|
|
catch (ClassNotFoundException classNotFoundException) {
|
|
throw new NoClassDefFoundError(classNotFoundException.getMessage());
|
|
}
|
|
}
|
|
|
|
public BArchPart() {
|
|
}
|
|
|
|
public BArchPart(String string, BInstallable bInstallable) {
|
|
this.setPartName(string);
|
|
this.setInstallable(bInstallable);
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$com$tridium$install$part$BArchPart;
|
|
if (clazz == null) {
|
|
clazz = class$com$tridium$install$part$BArchPart = BArchPart.class("[Lcom.tridium.install.part.BArchPart;", false);
|
|
}
|
|
TYPE = Sys.loadType((Class)clazz);
|
|
icon = BPart.getPartTypeIcon(TYPE);
|
|
}
|
|
}
|
|
|