public static final XmlApiDescriptor fromValue(BApiDescriptor apiDesc) { XmlApiDescriptor x = new XmlApiDescriptor(); x.name = apiDesc.name; x.apiPack = apiDesc.basePackage; x.version = BVersioning.longToString(apiDesc.version); x.uniqueObjects = apiDesc.uniqueObjects; return x; }
public BApiDescriptor toValue() { return new BApiDescriptor(name, apiPack, BVersioning.stringToLong(version), uniqueObjects); }