public void setChaincodeID(ChaincodeID chaincodeID) { if (chaincodeName != null) { throw new IllegalArgumentException("Chaincode name has already been set."); } if (chaincodeVersion != null) { throw new IllegalArgumentException("Chaincode version has already been set."); } if (chaincodePath != null) { throw new IllegalArgumentException("Chaincode path has already been set."); } this.chaincodeID = chaincodeID; chaincodeName = chaincodeID.getName(); chaincodePath = chaincodeID.getPath(); chaincodeVersion = chaincodeID.getVersion(); }
@Override public String toString() { return "ChaincodeID(" + getName() + ":" + getPath() + ":" + getVersion() + ")"; }
public void setChaincodeID(ChaincodeID chaincodeID) { if (chaincodeName != null) { throw new IllegalArgumentException("Chaincode name has already been set."); } if (chaincodeVersion != null) { throw new IllegalArgumentException("Chaincode version has already been set."); } if (chaincodePath != null) { throw new IllegalArgumentException("Chaincode path has already been set."); } this.chaincodeID = chaincodeID; chaincodeName = chaincodeID.getName(); chaincodePath = chaincodeID.getPath(); chaincodeVersion = chaincodeID.getVersion(); }
public void setChaincodeID(ChaincodeID chaincodeID) { if (chaincodeName != null) { throw new IllegalArgumentException("Chaincode name has already been set."); } if (chaincodeVersion != null) { throw new IllegalArgumentException("Chaincode version has already been set."); } if (chaincodePath != null) { throw new IllegalArgumentException("Chaincode path has already been set."); } this.chaincodeID = chaincodeID; chaincodeName = chaincodeID.getName(); chaincodePath = chaincodeID.getPath(); chaincodeVersion = chaincodeID.getVersion(); }
@Override public String toString() { return "ChaincodeID(" + getName() + ":" + getPath() + ":" + getVersion() + ")"; }
@Override public String toString() { return "ChaincodeID(" + getName() + ":" + getPath() + ":" + getVersion() + ")"; }